source = new FirstNameSource(); $sourceMeta = new SourceMeta($this->source); $this->templateMeta = new TemplateMeta($sourceMeta->getBasicPathArray(), $sourceMeta->getBasicName(), 'entity'); } public function testFrameTemplatePath(): void { $this->assertEquals($this->getExpectedPath('html', 'frame'), $this->templateMeta->getFrameTemplatePath()); } public function testContentTemplatePath(): void { $this->assertEquals($this->getExpectedPath('html', 'content'), $this->templateMeta->getContentTemplatePath()); } public function testSetType(): void { $this->templateMeta->setTemplateType('json'); $this->assertEquals($this->getExpectedPath('json', 'content'), $this->templateMeta->getContentTemplatePath()); $this->assertEquals($this->getExpectedPath('json', 'frame'), $this->templateMeta->getFrameTemplatePath()); $this->assertEquals('json', $this->templateMeta->getTemplateType()); } }