20-02-2026
This commit is contained in:
parent
854ce02bf6
commit
4d6b4930b2
128 changed files with 18247 additions and 2093 deletions
|
|
@ -4,7 +4,9 @@ use App\Models\User;
|
|||
use Livewire\Volt\Volt as LivewireVolt;
|
||||
|
||||
test('login screen can be rendered', function () {
|
||||
$response = $this->get('/login');
|
||||
$portalUrl = 'https://'.config('domains.domain_portal');
|
||||
|
||||
$response = $this->get($portalUrl.'/login');
|
||||
|
||||
$response->assertStatus(200);
|
||||
});
|
||||
|
|
@ -38,9 +40,11 @@ test('users can not authenticate with invalid password', function () {
|
|||
});
|
||||
|
||||
test('users can logout', function () {
|
||||
$portalUrl = 'https://'.config('domains.domain_portal');
|
||||
|
||||
$user = User::factory()->create();
|
||||
|
||||
$response = $this->actingAs($user)->post('/logout');
|
||||
$response = $this->actingAs($user)->post($portalUrl.'/logout');
|
||||
|
||||
$response->assertRedirect('/');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue