Exemple #1
0
 public function it_should_throw_on_logout_when_got_unexpected_response(HttpClient $client)
 {
     $client->get('Users/GetLoginState', ['userId' => $this->getPrimaryKeyValue()])->shouldBeCalled()->willReturn(Helper::oneResponse());
     $client->post('Users/UserLogout', ['userId' => $this->getPrimaryKeyValue()])->shouldBeCalled()->willReturn(Helper::trueResponse());
     $this->shouldThrow('\\Pisa\\GizmoAPI\\Exceptions\\UnexpectedResponseException')->duringLogout();
 }