diff --git a/tests/phpunit/includes/testcase.php b/tests/phpunit/includes/testcase.php index 27aabbf906..6c893cef49 100644 --- a/tests/phpunit/includes/testcase.php +++ b/tests/phpunit/includes/testcase.php @@ -412,6 +412,11 @@ class WP_UnitTestCase extends PHPUnit_Framework_TestCase { $this->assertEquals( $expected, $actual ); } + /** + * Modify WordPress's query internals as if a given URL has been requested. + * + * @param string $url The URL for the request. + */ function go_to( $url ) { // note: the WP and WP_Query classes like to silently fetch parameters // from all over the place (globals, GET, etc), which makes it tricky