mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +03:00
Fix the tests
This commit is contained in:
parent
625aa151f0
commit
e722f642ad
@ -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()
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user