17 lines
400 B
PHP
17 lines
400 B
PHP
<?php
|
|
|
|
use App\Models\User;
|
|
|
|
test('guests are redirected from my-runs to the login page', function () {
|
|
$response = $this->get(route('my-runs'));
|
|
|
|
$response->assertRedirect(route('login'));
|
|
});
|
|
|
|
test('authenticated users can visit the home page', function () {
|
|
$this->actingAs(User::factory()->create());
|
|
|
|
$response = $this->get(route('home'));
|
|
|
|
$response->assertStatus(200);
|
|
});
|