Fix the tests

This commit is contained in:
Guilhem Niot 2022-03-21 17:03:16 +01:00
parent 625aa151f0
commit e722f642ad
2 changed files with 4 additions and 3 deletions

View File

@ -252,7 +252,8 @@ class ApiController80
/**
* @Route("/custom-operation-id", methods={"GET", "POST"})
*
* @Operation(operationId="custom-operation-id")
* @OA\Get(operationId="get-custom-operation-id")
* @OA\Post(operationId="post-custom-operation-id")
* @OA\Response(response=200, description="success")
*/
public function customOperationIdAction()

View File

@ -564,10 +564,10 @@ class FunctionalTest extends WebTestCase
public function testCustomOperationId()
{
$operation = $this->getOperation('/api/custom-operation-id', 'get');
$this->assertEquals('custom-operation-id', $operation->operationId);
$this->assertEquals('get-custom-operation-id', $operation->operationId);
$operation = $this->getOperation('/api/custom-operation-id', 'post');
$this->assertEquals('custom-operation-id', $operation->operationId);
$this->assertEquals('post-custom-operation-id', $operation->operationId);
}
/**