diff --git a/tests/PagesTest.php b/tests/PagesTest.php index e690593..6911783 100644 --- a/tests/PagesTest.php +++ b/tests/PagesTest.php @@ -44,4 +44,15 @@ class PagesTest extends TestCase __('File exporter'), $this->response->getContent() ); } + + public function test_export_endpoint_is_not_reachable_for_guests_and_redirect_to_login() + { + $home = $this->get('/'); + $res = $this->get('/export'); + + $res->assertResponseStatus(302); + $res->assertEquals( + $home->response->getContent(), $this->response->getContent() + ); + } }