|
@@ 41-47 (lines=7) @@
|
| 38 |
|
$_SERVER['REQUEST_URI'] = $uri; |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
public function testListAction() |
| 42 |
|
{ |
| 43 |
|
$this->serverEnvironment('GET', 'example.com', '/api/v1/employees'); |
| 44 |
|
$response = $this->call('GET', 'http://example.com/api/v1/employees'); |
| 45 |
|
|
| 46 |
|
$this->assertEquals(200, $response->getStatusCode()); |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
public function testGetAction() |
| 50 |
|
{ |
|
@@ 49-55 (lines=7) @@
|
| 46 |
|
$this->assertEquals(200, $response->getStatusCode()); |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
public function testGetAction() |
| 50 |
|
{ |
| 51 |
|
$this->serverEnvironment('GET', 'example.com', '/api/v1/employees/1'); |
| 52 |
|
$response = $this->call('GET', 'http://example.com/api/v1/employees/1'); |
| 53 |
|
|
| 54 |
|
$this->assertEquals(200, $response->getStatusCode()); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
public function testPostAction() |
| 58 |
|
{ |