action methods * without re-entering mount(). Now duplicated into boot() which fires on * every Livewire request. */ class LdapSettingsAuthorizationTest extends TestCase { public function test_superadmin_can_mount() { $this->actingAs(User::factory()->firstAdmin()->create()); Livewire::test(LdapSettings::class) ->assertStatus(200); } public function test_non_superadmin_cannot_mount_or_replay() { $this->actingAs(User::factory()->create()); Livewire::test(LdapSettings::class) ->assertStatus(403); } }