Build/Test Tools: Document WP_UnitTestCase->go_to()
Fixes #36679. git-svn-id: https://develop.svn.wordpress.org/trunk@37319 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
967eb06e1b
commit
8692cdbecd
@ -412,6 +412,11 @@ class WP_UnitTestCase extends PHPUnit_Framework_TestCase {
|
|||||||
$this->assertEquals( $expected, $actual );
|
$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 ) {
|
function go_to( $url ) {
|
||||||
// note: the WP and WP_Query classes like to silently fetch parameters
|
// note: the WP and WP_Query classes like to silently fetch parameters
|
||||||
// from all over the place (globals, GET, etc), which makes it tricky
|
// from all over the place (globals, GET, etc), which makes it tricky
|
||||||
|
Loading…
Reference in New Issue
Block a user