From edb60f395c3e0d9eb8c168a8b684886f25a5dd5b Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Wed, 5 Sep 2018 09:11:08 +0200 Subject: [PATCH] Added DefaultController --- .../src/Controller/DefaultController.php | 30 +++++++++++++++++++ .../Controller/DefaultControllerInterface.php | 17 +++++++++++ .../src/Controller/DefaultControllerTest.php | 27 +++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 application/src/Controller/DefaultController.php create mode 100644 application/src/Controller/DefaultControllerInterface.php create mode 100644 application/src/Controller/DefaultControllerTest.php diff --git a/application/src/Controller/DefaultController.php b/application/src/Controller/DefaultController.php new file mode 100644 index 0000000..287e92f --- /dev/null +++ b/application/src/Controller/DefaultController.php @@ -0,0 +1,30 @@ +defaultController = new DefaultController(); + } + + public function testHomepage():void{ + $this->assertEquals(true, $this->defaultController->homepage()->isSuccessful()); + } + + public function testImprint():void{ + $this->assertEquals(true, $this->defaultController->imprint()->isSuccessful()); + } +} +