Add test for events

This commit is contained in:
philipp lang 2024-10-20 21:27:00 +02:00
parent 803c916e7a
commit e46b65b6cc
1 changed files with 4 additions and 1 deletions

View File

@ -62,7 +62,10 @@ it('test it updates a mailman gateway without updating password', function () {
Livewire::test(Form::class, ['model' => $mailgateway->id])
->set('name', '::newname::')
->call('onSave')
->assertHasNoErrors();
->assertHasNoErrors()
->assertDispatched('closeModal')
->assertDispatched('refresh-page')
->assertDispatched('success');
$this->assertDatabaseCount('mailgateways', 1);
$this->assertDatabaseHas('mailgateways', [