From ebd2606b0d02ce32179f010334419e2e1679e8b8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 13 Sep 2022 20:38:56 +0000 Subject: [PATCH] Tests: Rename the test for `wp_guess_url()` to match the function name. Includes adding `public` visibilty keyword for the data provider. Follow-up to [54146]. See #36827. git-svn-id: https://develop.svn.wordpress.org/trunk@54148 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/functions/wpGuessUrl.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/tests/functions/wpGuessUrl.php b/tests/phpunit/tests/functions/wpGuessUrl.php index fc9f57c718..cfa21bb4d3 100644 --- a/tests/phpunit/tests/functions/wpGuessUrl.php +++ b/tests/phpunit/tests/functions/wpGuessUrl.php @@ -11,11 +11,11 @@ class Tests_Functions_wpGuessUrl extends WP_UnitTestCase { /** * @ticket 36827 * - * @dataProvider data_guess_url_should_return_site_url + * @dataProvider data_wp_guess_url_should_return_site_url * * @param string $url The URL to navigate to, relative to `site_url()`. */ - public function test_guess_url_should_return_site_url( $url ) { + public function test_wp_guess_url_should_return_site_url( $url ) { $siteurl = site_url(); $this->go_to( site_url( $url ) ); $this->assertSame( $siteurl, wp_guess_url() ); @@ -26,7 +26,7 @@ class Tests_Functions_wpGuessUrl extends WP_UnitTestCase { * * @return array */ - function data_guess_url_should_return_site_url() { + public function data_wp_guess_url_should_return_site_url() { return array( 'no trailing slash' => array( 'url' => 'wp-admin' ), 'trailing slash' => array( 'url' => 'wp-admin/' ),