add export endpoint test

This commit is contained in:
Marco Cavalli 2023-10-12 16:38:13 +02:00
parent 784c620012
commit e36bb52245
1 changed files with 11 additions and 0 deletions

View File

@ -44,4 +44,15 @@ class PagesTest extends TestCase
__('File exporter'), $this->response->getContent() __('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()
);
}
} }