diff --git a/application/symfony/tests/Unit/Domain/TemplateManagement/TemplatePathFormAndViewTest.php b/application/symfony/tests/Unit/Domain/TemplateManagement/TemplatePathFormAndViewTest.php new file mode 100644 index 0000000..48dbe6b --- /dev/null +++ b/application/symfony/tests/Unit/Domain/TemplateManagement/TemplatePathFormAndViewTest.php @@ -0,0 +1,37 @@ +templatePathFormAndView = new TemplatePathFormAndView(self::FILE, self::FOLDER); + } + + public function testTypeReload(): void + { + foreach (RESTResponseType::getChoices() as $type) { + $this->templatePathFormAndView->reloadType($type); + $this->assertEquals(self::BASE_PATH.$type.'.twig', $this->templatePathFormAndView->getView()->getAtomTemplatePath()); + } + } +}