silverstripe-framework/tests/control/NullHTTPRequestTest.php
Damian Mooyman 8dd644d25d
API Namespace all classes
Namespace all templates
Move difflib and BBCodeParser2 to thirdparty
Remove deprecated API marked for removal in 4.0
2016-09-08 10:23:17 +12:00

27 lines
555 B
PHP

<?php
use SilverStripe\Dev\SapphireTest;
use SilverStripe\Control\NullHTTPRequest;
/**
* @package framework
* @subpackage tests
*/
class NullHTTPRequestTest extends SapphireTest {
public function testAllHttpVerbsAreFalse() {
$r = new NullHTTPRequest();
$this->assertFalse($r->isGET());
$this->assertFalse($r->isPOST());
$this->assertFalse($r->isPUT());
$this->assertFalse($r->isDELETE());
$this->assertFalse($r->isHEAD());
}
public function testGetURL() {
$r = new NullHTTPRequest();
$this->assertEquals('', $r->getURL());
}
}