F
Filament6mo ago
daar

Create pest tests

The following code gives a 404, which I don't understand why.
it('has admission-prices page', function () {
$response = $this->get('admission-prices');

$response->assertStatus(200);
});
it('has admission-prices page', function () {
$response = $this->get('admission-prices');

$response->assertStatus(200);
});
My URL is: http://localhost/emr/admission-prices Any suggestions?
4 Replies
LeandroFerreira
LeandroFerreira6mo ago
$this->get('emr/admission-prices') ?
daar
daar6mo ago
@Leandro Ferreira this gives me a 302 instead
daar
daar6mo ago
@Leandro Ferreira thanks you! I managed to resolve the issue...