| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class OptionsRequestTest extends ApiTestCase |
||
| 10 | { |
||
| 11 | /** @test */ |
||
| 12 | public function optionsRequestsReturnEmptyResponse(): void |
||
| 13 | { |
||
| 14 | $resp = $this->callApi(self::METHOD_OPTIONS, '/short-urls'); |
||
| 15 | |||
| 16 | $this->assertEquals(self::STATUS_NO_CONTENT, $resp->getStatusCode()); |
||
| 17 | $this->assertEmpty((string) $resp->getBody()); |
||
| 18 | } |
||
| 19 | |||
| 20 | /** @test */ |
||
| 21 | public function optionsRequestsReturnAllowedMethodsForEndpoint(): void |
||
| 30 | } |
||
| 31 | } |
||
| 32 |