|
|
@@ -601,6 +601,9 @@ class RequestHandlerComponentTest extends CakeTestCase {
|
|
|
$result = $this->RequestHandler->requestedWith(array('rss', 'atom'));
|
|
|
$this->assertFalse($result);
|
|
|
|
|
|
+ $_SERVER['REQUEST_METHOD'] = 'DELETE';
|
|
|
+ $this->assertEquals('json', $this->RequestHandler->requestedWith());
|
|
|
+
|
|
|
$_SERVER['REQUEST_METHOD'] = 'POST';
|
|
|
unset($_SERVER['CONTENT_TYPE']);
|
|
|
$_SERVER['HTTP_CONTENT_TYPE'] = 'application/json';
|