Add test for events
This commit is contained in:
parent
a51258bef9
commit
43e1fd4080
|
@ -62,7 +62,10 @@ it('test it updates a mailman gateway without updating password', function () {
|
||||||
Livewire::test(Form::class, ['model' => $mailgateway->id])
|
Livewire::test(Form::class, ['model' => $mailgateway->id])
|
||||||
->set('name', '::newname::')
|
->set('name', '::newname::')
|
||||||
->call('onSave')
|
->call('onSave')
|
||||||
->assertHasNoErrors();
|
->assertHasNoErrors()
|
||||||
|
->assertDispatched('closeModal')
|
||||||
|
->assertDispatched('refresh-page')
|
||||||
|
->assertDispatched('success');
|
||||||
|
|
||||||
$this->assertDatabaseCount('mailgateways', 1);
|
$this->assertDatabaseCount('mailgateways', 1);
|
||||||
$this->assertDatabaseHas('mailgateways', [
|
$this->assertDatabaseHas('mailgateways', [
|
||||||
|
|
Loading…
Reference in New Issue