You are here

public function TwigNamespaceTest::assertTwigTemplate in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/Kernel/Theme/TwigNamespaceTest.php \Drupal\Tests\system\Kernel\Theme\TwigNamespaceTest::assertTwigTemplate()

Checks to see if a value is a twig template.

1 call to TwigNamespaceTest::assertTwigTemplate()
TwigNamespaceTest::testTemplateDiscovery in core/modules/system/tests/src/Kernel/Theme/TwigNamespaceTest.php
Tests template discovery using namespaces.

File

core/modules/system/tests/src/Kernel/Theme/TwigNamespaceTest.php, line 41

Class

TwigNamespaceTest
Tests Twig namespaces.

Namespace

Drupal\Tests\system\Kernel\Theme

Code

public function assertTwigTemplate($value, $message = '') {
  $this
    ->assertInstanceOf(TemplateWrapper::class, $value, $message);
}