| Total Complexity | 3 | 
| Total Lines | 25 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 10 | class DeleteShortUrlActionTest extends ApiTestCase  | 
            ||
| 11 | { | 
            ||
| 12 | /** @test */  | 
            ||
| 13 | public function notFoundErrorIsReturnWhenDeletingInvalidUrl(): void  | 
            ||
| 14 |     { | 
            ||
| 15 | $resp = $this->callApiWithKey(self::METHOD_DELETE, '/short-urls/invalid');  | 
            ||
| 16 | ['error' => $error] = $this->getJsonResponsePayload($resp);  | 
            ||
| 17 | |||
| 18 | $this->assertEquals(self::STATUS_NOT_FOUND, $resp->getStatusCode());  | 
            ||
| 19 | $this->assertEquals(RestUtils::INVALID_SHORTCODE_ERROR, $error);  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 20 | }  | 
            ||
| 21 | |||
| 22 | /** @test */  | 
            ||
| 23 | public function badRequestIsReturnedWhenTryingToDeleteUrlWithTooManyVisits(): void  | 
            ||
| 35 | }  | 
            ||
| 36 | }  | 
            ||
| 37 |