diff --git a/tests/ExampleTest.php b/tests/ExampleTest.php new file mode 100644 index 0000000..1c265d4 --- /dev/null +++ b/tests/ExampleTest.php @@ -0,0 +1,23 @@ +get('/'); + + $this->assertEquals( + $this->app->version(), $this->response->getContent() + ); + } +} diff --git a/tests/PagesTest.php b/tests/PagesTest.php deleted file mode 100644 index e690593..0000000 --- a/tests/PagesTest.php +++ /dev/null @@ -1,47 +0,0 @@ -get('/'); - - $res->assertResponseOk(); - $res->assertStringContainsString( - 'organization', $this->response->getContent() - ); - } - - public function test_backend_is_not_reachable_for_guests_and_redirect_to_login() - { - $home = $this->get('/'); - $res = $this->get('/backend'); - - $res->assertResponseStatus(302); - $res->assertEquals( - $home->response->getContent(), $this->response->getContent() - ); - } - - public function test_backend_is_reachable_for_logged_in_users() - { - $res = $this->post('/backend', array( - 'organization' => 'GruppoCO', - 'password' => getenv('APP_PASSWORD') - )); - - $res->assertResponseOk(); - $res->assertStringContainsString( - __('File exporter'), $this->response->getContent() - ); - } -}