Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | public function testGetUser_() |
||
19 | { |
||
20 | $admin = $this->getTestingAdmin(); |
||
21 | |||
22 | // send the HTTP request |
||
23 | $response = $this->apiCall($this->injectEndpointId($this->endpoint, $admin->id), 'get', [], true); |
||
24 | |||
25 | // assert response status is correct |
||
26 | $this->assertEquals('200', $response->getStatusCode()); |
||
27 | |||
28 | $responseObject = $this->getResponseObject($response); |
||
29 | |||
30 | $this->assertEquals($admin->name, $responseObject->data->name); |
||
31 | } |
||
32 | |||
34 |