test detached backend root

Require the backend root to remain unclaimed by a frontend response. The standalone Vue application owns its own development and delivery path.
This commit is contained in:
Yisroel Baum 2026-07-30 23:11:23 +03:00
parent 2b53e2b8ac
commit c176be3536
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

@ -2,17 +2,14 @@
namespace Tests\Feature; namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase; use Tests\TestCase;
class ExampleTest extends TestCase class ExampleTest extends TestCase
{ {
use RefreshDatabase; public function test_root_does_not_serve_a_frontend(): void
public function test_returns_a_successful_response()
{ {
$response = $this->get(route('home')); $response = $this->get('/');
$response->assertOk(); $response->assertNotFound();
} }
} }