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