diff --git a/tests/phpunit/tests/post/nav-menu.php b/tests/phpunit/tests/post/nav-menu.php index 3153853159..08241af64e 100644 --- a/tests/phpunit/tests/post/nav-menu.php +++ b/tests/phpunit/tests/post/nav-menu.php @@ -40,7 +40,7 @@ class Tests_Post_Nav_Menu extends WP_UnitTestCase { ) ); - $this->assertSame( 0, strpos( $menu, 'assertStringStartsWith( 'assertSame( 0, strpos( $home, 'http://' ) ); + $this->assertStringStartsWith( 'http://', $home ); $_SERVER['HTTPS'] = 'on'; $this->assertSame( $home_https, network_home_url() );