mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-05-03 16:24:55 +00:00
🔥 **Cleanup:** Removed BookCase and OrangePill models, factories, migrations, and related references. Added tests for new service and meetup creation flows. Updated PHPUnit settings and browser-specific configurations.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
use App\Livewire\Actions\Logout;
|
||||
|
||||
it('logs the authenticated user out and redirects to /', function () {
|
||||
actingAsUser();
|
||||
|
||||
expect(auth()->check())->toBeTrue();
|
||||
|
||||
$response = (new Logout)();
|
||||
|
||||
expect($response->getTargetUrl())->toBe(url('/'));
|
||||
expect(auth()->check())->toBeFalse();
|
||||
});
|
||||
|
||||
it('still produces a redirect when invoked without an authenticated session', function () {
|
||||
$response = (new Logout)();
|
||||
|
||||
expect($response->getTargetUrl())->toBe(url('/'));
|
||||
});
|
||||
|
||||
it('is registered for the POST /logout route', function () {
|
||||
actingAsUser();
|
||||
|
||||
$this->post('/logout')->assertRedirect('/');
|
||||
});
|
||||
Reference in New Issue
Block a user