| Total Complexity | 2 | 
| Total Lines | 24 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 10 | class UpdateTagActionTest extends ApiTestCase  | 
            ||
| 11 | { | 
            ||
| 12 | /** @test */  | 
            ||
| 13 | public function errorIsThrownWhenTryingToRenameTagToAnotherTagName(): void  | 
            ||
| 14 |     { | 
            ||
| 15 | $resp = $this->callApiWithKey(self::METHOD_PUT, '/tags', [RequestOptions::JSON => [  | 
            ||
| 16 | 'oldName' => 'foo',  | 
            ||
| 17 | 'newName' => 'bar',  | 
            ||
| 18 | ]]);  | 
            ||
| 19 | $payload = $this->getJsonResponsePayload($resp);  | 
            ||
| 20 | |||
| 21 | $this->assertEquals(self::STATUS_CONFLICT, $resp->getStatusCode());  | 
            ||
| 22 |         $this->assertEquals('TAG_CONFLICT', $payload['error']); | 
            ||
| 23 | }  | 
            ||
| 24 | |||
| 25 | /** @test */  | 
            ||
| 26 | public function tagIsProperlyRenamedWhenRenamingToItself(): void  | 
            ||
| 34 | }  | 
            ||
| 35 | }  | 
            ||
| 36 |