Add test for events
This commit is contained in:
parent
87a7615486
commit
c08984ae20
|
@ -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', [
|
||||
|
|
Loading…
Reference in New Issue