Skip to content

Commit

Permalink
taskのテストメソッドが壊れていたの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
polidog committed Dec 24, 2014
1 parent 4236d39 commit 6f24e23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Api/MyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ public function callStatusApi()
*/
public function callTasksApi()
{
Phake::when($this->httpClient)->get('my/tasks')->thenReturn($this->response);
Phake::when($this->httpClient)->get('my/tasks',['query' => []])->thenReturn($this->response);

$my = new My($this->httpClient);
$my->tasks();

Phake::verify($this->httpClient, Phake::times(1))->get('my/tasks');
Phake::verify($this->httpClient, Phake::times(1))->get('my/tasks',['query' => []]);
Phake::verify($this->response, Phake::times(1))->json();

}
Expand Down

0 comments on commit 6f24e23

Please sign in to comment.