add back destroy other browser sessions endpoint (jetstream migration)

This commit is contained in:
Gregor Vostrak
2026-06-10 13:28:35 +02:00
committed by Constantin Graf
parent a4c400ef4e
commit 6b01034bdd
4 changed files with 160 additions and 25 deletions

View File

@@ -1,25 +0,0 @@
<?php
declare(strict_types=1);
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class BrowserSessionsTest extends TestCase
{
use RefreshDatabase;
public function test_other_browser_sessions_can_be_logged_out(): void
{
$this->actingAs($user = User::factory()->create());
$response = $this->delete('/user/other-browser-sessions', [
'password' => 'password',
]);
$response->assertSessionHasNoErrors();
}
}