mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-09 13:25:41 +00:00
Remove the static test container fallback from the extra bundle integration test
This commit is contained in:
@@ -19,8 +19,7 @@ class IntegrationTest extends KernelTestCase
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$container = method_exists(self::class, 'getContainer') ? self::getContainer() : self::$container;
|
||||
$rendered = $container->get('twig')->render('markdown_to_html.html.twig');
|
||||
$rendered = self::getContainer()->get('twig')->render('markdown_to_html.html.twig');
|
||||
|
||||
$this->assertStringContainsString('<h1>Hello <del>World</del></h1>', $rendered);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user