Skip to content

Commit

Permalink
Update unit tests to latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Dec 26, 2024
1 parent b4a54ef commit ec420bb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/phpunit/includes/class-hierarchical-sort-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ public function test_return_all_post_ids() {
),
);

$hs = Hierarchical_Sort::get_instance();
$result = $hs->sort( $input );
$result = Hierarchical_Sort::run( $input );
$this->assertEquals( array( 12, 3, 6, 5, 4, 7, 8, 9, 11, 10 ), $result['post_ids'] );
$this->assertEquals(
array(
Expand Down Expand Up @@ -112,8 +111,7 @@ public function test_return_orphans() {
),
);

$hs = Hierarchical_Sort::get_instance();
$result = $hs->sort( $input );
$result = Hierarchical_Sort::run( $input );
$this->assertEquals( array( 11, 4, 7 ), $result['post_ids'] );
$this->assertEquals(
array(
Expand Down Expand Up @@ -185,8 +183,7 @@ public function test_post_with_empty_post_parent_are_considered_top_level() {
),
);

$hs = Hierarchical_Sort::get_instance();
$result = $hs->sort( $input );
$result = Hierarchical_Sort::run( $input );
$this->assertEquals( array( 2, 3, 5, 6, 4, 7, 8, 9, 11, 10 ), $result['post_ids'] );
$this->assertEquals(
array(
Expand Down

0 comments on commit ec420bb

Please sign in to comment.