public function EntityEmbedTwigTest::testTwigExtensionLoaded in Entity Embed 8
Tests that the provided Twig extension loads the service appropriately.
File
- tests/
src/ Functional/ EntityEmbedTwigTest.php, line 25
Class
- EntityEmbedTwigTest
- Tests Twig extension provided by entity_embed.
Namespace
Drupal\Tests\entity_embed\FunctionalCode
public function testTwigExtensionLoaded() {
$ext = $this->container
->get('twig')
->getExtension(EntityEmbedTwigExtension::class);
$this
->assertNotEmpty($ext);
$this
->assertInstanceOf(EntityEmbedTwigExtension::class, $ext, 'Extension loaded successfully.');
}