test/Twig/Loader/TerrificLoaderTest.php
/**
   * Test if templates in component subdirectories are loaded.
   */
Test if templates in component subdirectories are loaded.
Test if templates in component subdirectories are loaded .
public function testChildTemplateLoading(): void {
    $loader = $this->getTerrificLoader();
    $source = $loader->getSourceContext('molecule-element.twig');
    $this->assertEquals(self::FIXTURE_MOLECULE_ELEMENT_CONTENT, $source->getCode(), 'Child template content is not correct.');
  }
public function testChildTemplateLoading ( ) : void { $ loader = $ this -> getTerrificLoader ( ) ; $ source = $ loader -> getSourceContext ( 'molecule-element.twig' ) ; $ this -> assertEquals ( self :: FIXTURE_MOLECULE_ELEMENT_CONTENT , $ source -> getCode ( ) , 'Child template content is not correct.' ) ; }
Test if templates in component subdirectories are loaded.
Test if templates in component subdirectories are loaded .