From a631475254423ddf500cbcaec73edcf14d92be1d Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Sun, 6 Jan 2019 16:44:41 +0100 Subject: [PATCH] Implemented tests for reloadType --- .../TemplatePathFormAndViewTest.php | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 application/symfony/tests/Unit/Domain/TemplateManagement/TemplatePathFormAndViewTest.php 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()); + } + } +}