29 lines
604 B
PHP
29 lines
604 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests\Feature;
|
||
|
|
||
|
use App\Models\User;
|
||
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||
|
use Illuminate\Foundation\Testing\WithFaker;
|
||
|
use Tests\TestCase;
|
||
|
|
||
|
class HorizonTest extends TestCase
|
||
|
{
|
||
|
/**
|
||
|
* Horizon has its own test suite, here we just test it has been installed successfully.
|
||
|
*
|
||
|
* @test
|
||
|
* @return void
|
||
|
*/
|
||
|
public function horizonIsInstalled(): void
|
||
|
{
|
||
|
$user = User::factory()->create([
|
||
|
'name' => 'jonny',
|
||
|
]);
|
||
|
|
||
|
$response = $this->actingAs($user)->get('/horizon');
|
||
|
|
||
|
$response->assertStatus(200);
|
||
|
}
|
||
|
}
|