From fa92abf4f338f9f6c09bf034899bcb58aae09589 Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Mon, 18 Apr 2016 03:26:48 +0000 Subject: [PATCH] Tests: Add missing params to doc blocks * These should have been included in [37236] and [37238]. * Simplifies parameter names in `test_get_network_by_path()` See #36566. git-svn-id: https://develop.svn.wordpress.org/trunk@37239 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/multisite/bootstrap.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/multisite/bootstrap.php b/tests/phpunit/tests/multisite/bootstrap.php index 1e6d1da49a..1c7e544f8c 100644 --- a/tests/phpunit/tests/multisite/bootstrap.php +++ b/tests/phpunit/tests/multisite/bootstrap.php @@ -63,9 +63,14 @@ class Tests_Multisite_Bootstrap extends WP_UnitTestCase { /** * @ticket 27003 * @dataProvider data_get_network_by_path + * + * @param string $expected_key The array key associated with expected data for the test. + * @param string $domain The requested domain. + * @param string $path The requested path. + * @param string $message The message to pass for failed tests. */ - function test_get_network_by_path( $expected_key, $request_domain, $request_path, $message ) { - $network = get_network_by_path( $request_domain, $request_path ); + function test_get_network_by_path( $expected_key, $domain, $path, $message ) { + $network = get_network_by_path( $domain, $path ); $this->assertEquals( self::$network_ids[ $expected_key ], $network->id, $message ); } @@ -139,6 +144,11 @@ class Tests_Multisite_Bootstrap extends WP_UnitTestCase { /** * @ticket 27884 * @dataProvider data_multisite_bootstrap + * + * @param string $site_key The array key associated with the expected site for the test. + * @param string $network_key The array key associated with the expected network for the test. + * @param string $domain The requested domain. + * @param string $path The requested path. */ function test_multisite_bootstrap( $site_key, $network_key, $domain, $path ) { global $current_blog;