source = new FirstNameSource(); $this->templateMeta = new TemplateMeta(new SourceMeta($this->source)); } 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()); } }