Skip to content

Commit

Permalink
Adding unit test for HTTP DELETE and RequestHandlerComponent::request…
Browse files Browse the repository at this point in the history
…edWith
  • Loading branch information
stevetauber committed Jul 29, 2014
1 parent 0af698c commit e6f6ded
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -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';
Expand Down

0 comments on commit e6f6ded

Please sign in to comment.