mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-03-10 09:36:10 +03:00
Merge branch 'master' of https://github.com/nelmio/NelmioApiDocBundle
This commit is contained in:
commit
48c65fefc8
@ -179,4 +179,16 @@ class ApiDocExtractorTest extends WebTestCase
|
||||
$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_14');
|
||||
|
||||
$this->assertNotNull($annotation);
|
||||
$this->assertTrue(
|
||||
$annotation->getDeprecated()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -154,4 +154,12 @@ class TestController
|
||||
public function cachedAction()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @ApiDoc()
|
||||
* @deprecated
|
||||
*/
|
||||
public function deprecatedAction()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user