You are here

public function TwigRegistryLoaderTest::assertTwigTemplate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Theme/TwigRegistryLoaderTest.php \Drupal\system\Tests\Theme\TwigRegistryLoaderTest::assertTwigTemplate()

Checks to see if a value is a Twig template.

1 call to TwigRegistryLoaderTest::assertTwigTemplate()
TwigRegistryLoaderTest::testTemplateDiscovery in core/modules/system/src/Tests/Theme/TwigRegistryLoaderTest.php
Tests template discovery using the Drupal theme registry.

File

core/modules/system/src/Tests/Theme/TwigRegistryLoaderTest.php, line 40
Contains \Drupal\system\Tests\Theme\TwigRegistryLoaderTest.

Class

TwigRegistryLoaderTest
Tests Twig registry loader.

Namespace

Drupal\system\Tests\Theme

Code

public function assertTwigTemplate($value, $message = '', $group = 'Other') {
  $this
    ->assertTrue($value instanceof \Twig_Template, $message, $group);
}