| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function optionsRequestsReturnAllowedMethodsForEndpoint(): void |
||
| 22 | { |
||
| 23 | $resp = $this->callApi(self::METHOD_OPTIONS, '/short-urls'); |
||
| 24 | $allowedMethods = $resp->getHeaderLine('Allow'); |
||
| 25 | |||
| 26 | $this->assertEquals([ |
||
| 27 | self::METHOD_GET, |
||
| 28 | self::METHOD_POST, |
||
| 29 | ], explode(',', $allowedMethods)); |
||
| 30 | } |
||
| 32 |