Protect recordings per user, seed a demo login on container start, and bind-mount the app with Vite HMR for local Compose development.
21 lines
410 B
PHP
21 lines
410 B
PHP
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use Tests\TestCase;
|
|
|
|
class ExampleTest extends TestCase
|
|
{
|
|
/**
|
|
* Guests hitting / are sent toward recordings, then login.
|
|
*/
|
|
public function test_the_application_redirects_guests_to_login(): void
|
|
{
|
|
$this->get('/')
|
|
->assertRedirect('/recordings');
|
|
|
|
$this->get('/recordings')
|
|
->assertRedirect(route('login'));
|
|
}
|
|
}
|