jonnybarnes.uk/tests/Feature/HorizonTest.php

28 lines
515 B
PHP
Raw Normal View History

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