Company Search added

This commit is contained in:
2025-10-17 09:20:35 +02:00
parent 3ce0181b25
commit d0574f4d91
10 changed files with 59 additions and 10 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
use App\Models\User;
test('guests are redirected to the login page', function () {
$response = $this->get(route('company-search'));
$response->assertRedirect(route('login'));
});
test('authenticated users can visit the company search page', function () {
$user = User::factory()->create();
$this->actingAs($user);
$response = $this->get(route('company-search'));
$response->assertSuccessful();
$response->assertSee('Unternehmensauskunft');
});