diff --git a/tests/security/SecurityTokenTest.php b/tests/security/SecurityTokenTest.php index 01e2bd927..17dcc3180 100644 --- a/tests/security/SecurityTokenTest.php +++ b/tests/security/SecurityTokenTest.php @@ -71,19 +71,19 @@ class SecurityTokenTest extends SapphireTest { $n = $t->getName(); $t->setValue(null); - $r = new SS_HTTPRequest('GET', 'dummy', array($n => 'invalidtoken')); + $r = new HTTPRequest('GET', 'dummy', array($n => 'invalidtoken')); $this->assertFalse($t->checkRequest($r), 'Any token is invalid if no token is stored'); $t->setValue(null); - $r = new SS_HTTPRequest('GET', 'dummy', array($n => null)); + $r = new HTTPRequest('GET', 'dummy', array($n => null)); $this->assertFalse($t->checkRequest($r), 'NULL token is invalid if no token is stored'); $t->setValue('mytoken'); - $r = new SS_HTTPRequest('GET', 'dummy', array($n => 'invalidtoken')); + $r = new HTTPRequest('GET', 'dummy', array($n => 'invalidtoken')); $this->assertFalse($t->checkRequest($r), 'Invalid token returns false'); $t->setValue('mytoken'); - $r = new SS_HTTPRequest('GET', 'dummy', array($n => 'mytoken')); + $r = new HTTPRequest('GET', 'dummy', array($n => 'mytoken')); $this->assertTrue($t->checkRequest($r), 'Valid token returns true'); }