add export endpoint test
This commit is contained in:
parent
784c620012
commit
e36bb52245
|
@ -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()
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue