public function CalendarLinkTwigExtensionTest::testTwigExtensionLoaded in Calendar Link 8
Same name and namespace in other branches
- 2.x tests/src/Kernel/CalendarLinkTwigExtensionTest.php \Drupal\Tests\calendar_link\Kernel\CalendarLinkTwigExtensionTest::testTwigExtensionLoaded()
Tests that Twig extension loads appropriately.
File
- tests/
src/ Kernel/ CalendarLinkTwigExtensionTest.php, line 25
Class
- CalendarLinkTwigExtensionTest
- Tests Twig extensions.
Namespace
Drupal\Tests\calendar_link\KernelCode
public function testTwigExtensionLoaded() {
$twig_service = \Drupal::service('twig');
$extension = $twig_service
->getExtension(CalendarLinkTwigExtension::class);
$this
->assertEquals(get_class($extension), CalendarLinkTwigExtension::class, 'Calendar Link extension loaded successfully.');
}