forge/tests/Feature/User/BrowserSessionsTest.php

15 lines
407 B
PHP
Raw Normal View History

2024-07-18 00:11:32 -04:00
<?php
use App\Models\User;
use Laravel\Jetstream\Http\Livewire\LogoutOtherBrowserSessionsForm;
use Livewire\Livewire;
test('other browser sessions can be logged out', function () {
$this->actingAs(User::factory()->create());
Livewire::test(LogoutOtherBrowserSessionsForm::class)
->set('password', 'password')
->call('logoutOtherBrowserSessions')
->assertSuccessful();
});