From b4c74ee9384f1526f51e6dd481439f4f7e24accf Mon Sep 17 00:00:00 2001 From: Guilhem Niot Date: Tue, 21 Dec 2021 13:41:49 +0100 Subject: [PATCH] Fix retrieval of container in tests --- Tests/Render/Html/GetNelmioAssetTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Render/Html/GetNelmioAssetTest.php b/Tests/Render/Html/GetNelmioAssetTest.php index 8aea594..063393e 100644 --- a/Tests/Render/Html/GetNelmioAssetTest.php +++ b/Tests/Render/Html/GetNelmioAssetTest.php @@ -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));