Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

Commit

Permalink
Added test for patch request
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesryanbell committed Jan 12, 2015
1 parent 7243cea commit da3a0ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/ApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ public function testHttpPutMethodSet() {
$this->assertEquals("put", $result['method']);
}

public function testHttpPatchMethodSet() {
$api = new Api('email@example.com', 'Auth Key');
$result = $api->patch('test');
$this->assertEquals("patch", $result['method']);
}

public function testHttpDeleteMethodSet() {
$api = new Api('email@example.com', 'Auth Key');
$result = $api->delete('test');
Expand Down

0 comments on commit da3a0ea

Please sign in to comment.