diff --git a/tests/phpunit/tests/functions/wpFindHierarchyLoopTortoiseHare.php b/tests/phpunit/tests/functions/wpFindHierarchyLoopTortoiseHare.php index 264d6e65b9bd0..2889033b98582 100644 --- a/tests/phpunit/tests/functions/wpFindHierarchyLoopTortoiseHare.php +++ b/tests/phpunit/tests/functions/wpFindHierarchyLoopTortoiseHare.php @@ -14,7 +14,9 @@ class Tests_Functions_wpFindHierarchyLoopTortoiseHare extends WP_UnitTestCase { */ public function test_wp_find_hierarchy_loop_tortoise_hare() { - $result = wp_find_hierarchy_loop_tortoise_hare( static function ( $id ) { return 1; }, 1 ); + $result = wp_find_hierarchy_loop_tortoise_hare( static function ( $id ) { + return 1; + }, 1 ); $this->assertEquals( 1, $result ); } @@ -23,7 +25,9 @@ public function test_wp_find_hierarchy_loop_tortoise_hare() { */ public function test_wp_find_hierarchy_loop_tortoise_hare_2() { - $result = wp_find_hierarchy_loop_tortoise_hare( static function ( $id ) { return 2; }, 1 ); + $result = wp_find_hierarchy_loop_tortoise_hare( static function ( $id ) { + return 2; + }, 1 ); $this->assertEquals( 2, $result ); } /** @@ -31,8 +35,13 @@ public function test_wp_find_hierarchy_loop_tortoise_hare_2() { */ public function test_wp_find_hierarchy_loop_tortoise_hare_return_loop() { - $result = wp_find_hierarchy_loop_tortoise_hare( static function ( $id ) { return 2; }, 1, array(), array(), true ); - $expected = array( 1 => true, 2 => true ); + $result = wp_find_hierarchy_loop_tortoise_hare( static function ( $id ) { + return 2; + }, 1, array(), array(), true ); + $expected = array( + 1 => true, + 2 => true, + ); $this->assertSame( $expected, $result ); } @@ -41,7 +50,9 @@ public function test_wp_find_hierarchy_loop_tortoise_hare_return_loop() { */ public function test_wp_find_hierarchy_loop_tortoise_hare_return_loop_2() { - $result = wp_find_hierarchy_loop_tortoise_hare( static function ( $id ) { return 1; }, 1, array(), array(), true ); + $result = wp_find_hierarchy_loop_tortoise_hare( static function ( $id ) { + return 1; + }, 1, array(), array(), true ); $expected = array( 1 => true ); $this->assertSame( $expected, $result ); }