mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-03-11 18:16:13 +03:00
Fix retrieval of container in tests
This commit is contained in:
parent
e04521ebea
commit
b4c74ee938
@ -23,7 +23,7 @@ class GetNelmioAssetTest extends WebTestCase
|
||||
{
|
||||
static::bootKernel();
|
||||
/** @var GetNelmioAsset $getNelmioAsset */
|
||||
$getNelmioAsset = static::$container->get('nelmio_api_doc.render_docs.html.asset');
|
||||
$getNelmioAsset = static::getContainer()->get('nelmio_api_doc.render_docs.html.asset');
|
||||
/** @var TwigFunction */
|
||||
$twigFunction = $getNelmioAsset->getFunctions()[0];
|
||||
self::assertSame($expectedContent, $twigFunction->getCallable()->__invoke($mode, $asset));
|
||||
|
Loading…
x
Reference in New Issue
Block a user