You are here

public function TwigRegistryLoaderTest::testTemplateDiscovery 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::testTemplateDiscovery()

Tests template discovery using the Drupal theme registry.

File

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

Class

TwigRegistryLoaderTest
Tests Twig registry loader.

Namespace

Drupal\system\Tests\Theme

Code

public function testTemplateDiscovery() {
  $this
    ->assertTwigTemplate($this->twig
    ->resolveTemplate('block.html.twig'), 'Found block.html.twig in block module.');
}