Skip to content

Commit

Permalink
test: add sanity check for roster rendering without Livewire helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
AxonC committed Mar 28, 2024
1 parent 3504cb8 commit e96e097
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/Feature/Roster/SanityCheck.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace Tests\Feature\Roster;

use App\Models\Mship\Account;
use Tests\TestCase;

class SanityCheck extends TestCase
{
public function test_render_without_livewire_helpers(): void
{
$account = Account::factory()->create();
$response = $this->actingAs($account)->get('/roster');

$response->assertStatus(200);
$response->assertSee("Hello, $account->name_first!");
}
}

0 comments on commit e96e097

Please sign in to comment.