diff --git a/api/tests/unit/Controller/WorkingHoursViewControllerTest.php b/api/tests/unit/Controller/WorkingHoursViewControllerTest.php index 56c431f..fa2ca2f 100644 --- a/api/tests/unit/Controller/WorkingHoursViewControllerTest.php +++ b/api/tests/unit/Controller/WorkingHoursViewControllerTest.php @@ -44,16 +44,16 @@ class WorkingHoursViewControllerTest extends Unit } /** + * @throws NotDatabasesException * @throws Exception */ - public function testBrowseMonthlyWithNonDatabase(): void + public function testConstructWithNonDatabase(): void { $this->container = $this->makeEmpty(ContainerInterface::class, [ 'has' => false ]); - $controller = new WorkingHoursViewController($this->container); $this->expectException(NotDatabasesException::class); - $controller->browseMonthly($this->request, $this->response, []); + new WorkingHoursViewController($this->container); } /** @@ -66,19 +66,6 @@ class WorkingHoursViewControllerTest extends Unit $this->assertInstanceOf(Response::class, $response); } - /** - * @throws Exception - */ - public function testBrowseYearlyWithNonDatabase(): void - { - $this->container = $this->makeEmpty(ContainerInterface::class, [ - 'has' => false - ]); - $controller = new WorkingHoursViewController($this->container); - $this->expectException(NotDatabasesException::class); - $controller->browseYearly($this->request, $this->response, []); - } - /** * @throws Exception */ @@ -89,19 +76,6 @@ class WorkingHoursViewControllerTest extends Unit $this->assertInstanceOf(Response::class, $response); } - /** - * @throws Exception - */ - public function testBrowseWeeklyWithNonDatabase(): void - { - $this->container = $this->makeEmpty(ContainerInterface::class, [ - 'has' => false - ]); - $controller = new WorkingHoursViewController($this->container); - $this->expectException(NotDatabasesException::class); - $controller->browseWeekly($this->request, $this->response, []); - } - /** * @throws Exception */