mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: test support for superglobals in testrequest (from r94711)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@95622 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
775945d197
commit
439ca0e466
@ -128,7 +128,7 @@ class DirectorTest extends SapphireTest {
|
|||||||
$_POST = array('somekey' => 'postvalue');
|
$_POST = array('somekey' => 'postvalue');
|
||||||
$_COOKIE = array('somekey' => 'cookievalue');
|
$_COOKIE = array('somekey' => 'cookievalue');
|
||||||
|
|
||||||
$getresponse = Director::test('errorpage');
|
$getresponse = Director::test('errorpage?somekey=sometestgetvalue', array('somekey' => 'sometestpostvalue'), null, null, null, null, array('somekey' => 'sometestcookievalue'));
|
||||||
|
|
||||||
$this->assertEquals('getvalue', $_GET['somekey'], '$_GET reset to original value after Director::test()');
|
$this->assertEquals('getvalue', $_GET['somekey'], '$_GET reset to original value after Director::test()');
|
||||||
$this->assertEquals('postvalue', $_POST['somekey'], '$_POST reset to original value after Director::test()');
|
$this->assertEquals('postvalue', $_POST['somekey'], '$_POST reset to original value after Director::test()');
|
||||||
|
Loading…
Reference in New Issue
Block a user