mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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
This commit is contained in:
parent
5225a99b9d
commit
ebd2606b0d
@ -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/' ),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user