Files
monica/tests/Feature/Auth/BrowserSessionsTest.php
T

26 lines
567 B
PHP

<?php
namespace Tests\Feature\Auth;
use App\Models\User;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use PHPUnit\Framework\Attributes\Test;
use Tests\TestCase;
class BrowserSessionsTest extends TestCase
{
use DatabaseTransactions;
#[Test]
public function other_browser_sessions_can_be_logged_out()
{
$this->actingAs($user = User::factory()->create());
$response = $this->delete('/user/other-browser-sessions', [
'password' => 'password',
]);
$response->assertSessionHasNoErrors();
}
}