mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
Added test case
This commit is contained in:
parent
bb9fd6d756
commit
93e83e610c
@ -179,4 +179,16 @@ class ApiDocExtractorTest extends WebTestCase
|
|||||||
$annotation->getCache()
|
$annotation->getCache()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testGetWithDeprecated()
|
||||||
|
{
|
||||||
|
$container = $this->getContainer();
|
||||||
|
$extractor = $container->get('nelmio_api_doc.extractor.api_doc_extractor');
|
||||||
|
$annotation = $extractor->get('Nelmio\ApiDocBundle\Tests\Fixtures\Controller\TestController::DeprecatedAction', 'test_route_15');
|
||||||
|
|
||||||
|
$this->assertNotNull($annotation);
|
||||||
|
$this->assertTrue(
|
||||||
|
$annotation->getDeprecated()
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -154,4 +154,12 @@ class TestController
|
|||||||
public function cachedAction()
|
public function cachedAction()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ApiDoc()
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
|
public function deprecatedAction()
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user