Implemented formMeta

This commit is contained in:
Kevin Frantz
2018-11-23 16:21:26 +01:00
parent b9a312cfd9
commit 2009f1b691
6 changed files with 88 additions and 12 deletions

View File

@@ -23,13 +23,14 @@ class TemplateMetaTest extends TestCase
private function getExpectedPath(string $type, string $context): string
{
return $context.'/source/primitive/name/firstname.'.$type.'.twig';
return $context.'/entity/source/primitive/name/firstname.'.$type.'.twig';
}
public function setUp(): void
{
$this->source = new FirstNameSource();
$this->templateMeta = new TemplateMeta(new SourceMeta($this->source));
$sourceMeta = new SourceMeta($this->source);
$this->templateMeta = new TemplateMeta($sourceMeta->getBasicPathArray(), $sourceMeta->getBasicName(), 'entity');
}
public function testFrameTemplatePath(): void