Skip to content
Permalink
Browse files

Adding unit test for HTTP DELETE and RequestHandlerComponent::request…

…edWith
  • Loading branch information...
stevetauber committed Jul 29, 2014
1 parent 0af698c commit e6f6ded3349dc4bdbcc5dbeef4709ef42c13675d
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php
@@ -601,6 +601,9 @@ public function testRequestContentTypes() {
$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';

0 comments on commit e6f6ded

Please sign in to comment.
You can’t perform that action at this time.