@@ 49-55 (lines=7) @@ | ||
46 | $this->assertEquals(200, $response->getStatusCode()); |
|
47 | } |
|
48 | ||
49 | public function testGetActionWhenEmployeeDoesNotExist() |
|
50 | { |
|
51 | $this->serverEnvironment('GET', 'example.com', '/api/v1/employees/1000'); |
|
52 | $response = $this->call('GET', 'http://example.com/api/v1/employees/1000'); |
|
53 | ||
54 | $this->assertEquals(404, $response->getStatusCode()); |
|
55 | } |
|
56 | ||
57 | public function testPostAction() |
|
58 | { |
|
@@ 69-75 (lines=7) @@ | ||
66 | { |
|
67 | } |
|
68 | ||
69 | public function testDeleteActionWhenEmployeeDoesNotExistReturns404() |
|
70 | { |
|
71 | $this->serverEnvironment('DELETE', 'example.com', '/api/v1/employees/1000'); |
|
72 | $response = $this->call('DELETE', 'http://example.com/api/v1/employees/1000'); |
|
73 | ||
74 | $this->assertEquals(404, $response->getStatusCode()); |
|
75 | } |
|
76 | } |
|
77 |