jonnybarnes.uk/tests/Feature/HorizonTest.php

26 lines
519 B
PHP
Raw Normal View History

2022-05-14 17:44:14 +01:00
<?php
namespace Tests\Feature;
use App\Models\User;
2025-04-01 21:08:17 +01:00
use PHPUnit\Framework\Attributes\Test;
2022-05-14 17:44:14 +01:00
use Tests\TestCase;
class HorizonTest extends TestCase
{
/**
* Horizon has its own test suite, here we just test it has been installed successfully.
*/
2025-04-01 21:08:17 +01:00
#[Test]
2022-05-14 17:44:14 +01:00
public function horizonIsInstalled(): void
{
$user = User::factory()->create([
'name' => 'jonny',
]);
$response = $this->actingAs($user)->get('/horizon');
$response->assertStatus(200);
}
}