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