public function test_missing_fields_when_creating_user(): void
{
$this->tempUser->assignRole(RoleConstants::SUPER_ADMIN);
Livewire::actingAs($this->tempUser)
->test(UserResource\Pages\CreateUser::class)
->call('create')
->assertHasErrors(['data.name', 'data.email', 'data.password', 'data.password_confirmation']);
$this->tempUser->removeRole(RoleConstants::SUPER_ADMIN);
}
public function test_missing_fields_when_creating_user(): void
{
$this->tempUser->assignRole(RoleConstants::SUPER_ADMIN);
Livewire::actingAs($this->tempUser)
->test(UserResource\Pages\CreateUser::class)
->call('create')
->assertHasErrors(['data.name', 'data.email', 'data.password', 'data.password_confirmation']);
$this->tempUser->removeRole(RoleConstants::SUPER_ADMIN);
}