You are here

public function TwigRegistryLoaderTest::assertTwigTemplate in Drupal 9

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

Checks to see if a value is a Twig template.

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

File

core/modules/system/tests/src/Functional/Theme/TwigRegistryLoaderTest.php, line 41

Class

TwigRegistryLoaderTest
Tests Twig registry loader.

Namespace

Drupal\Tests\system\Functional\Theme

Code

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