public function TwigNamespaceTest::assertTwigTemplate in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Theme/TwigNamespaceTest.php \Drupal\system\Tests\Theme\TwigNamespaceTest::assertTwigTemplate()
Checks to see if a value is a twig template.
1 call to TwigNamespaceTest::assertTwigTemplate()
- TwigNamespaceTest::testTemplateDiscovery in core/
modules/ system/ src/ Tests/ Theme/ TwigNamespaceTest.php - Tests template discovery using namespaces.
File
- core/
modules/ system/ src/ Tests/ Theme/ TwigNamespaceTest.php, line 40 - Contains \Drupal\system\Tests\Theme\TwigNamespaceTest.
Class
- TwigNamespaceTest
- Tests Twig namespaces.
Namespace
Drupal\system\Tests\ThemeCode
public function assertTwigTemplate($value, $message = '', $group = 'Other') {
$this
->assertTrue($value instanceof \Twig_Template, $message, $group);
}