public function TwigRegistryLoaderTest::testTemplateDiscovery in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/Theme/TwigRegistryLoaderTest.php \Drupal\Tests\system\Functional\Theme\TwigRegistryLoaderTest::testTemplateDiscovery()
- 9 core/modules/system/tests/src/Functional/Theme/TwigRegistryLoaderTest.php \Drupal\Tests\system\Functional\Theme\TwigRegistryLoaderTest::testTemplateDiscovery()
Tests template discovery using the Drupal theme registry.
File
- core/
modules/ system/ tests/ src/ Functional/ Theme/ TwigRegistryLoaderTest.php, line 50
Class
- TwigRegistryLoaderTest
- Tests Twig registry loader.
Namespace
Drupal\Tests\system\Functional\ThemeCode
public function testTemplateDiscovery() {
$this
->assertTwigTemplate($this->twig
->load('block.html.twig'), 'Found block.html.twig in block module.');
}