From e46b65b6cce5f5ee959098110fe1669fe52d6d45 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sun, 20 Oct 2024 21:27:00 +0200 Subject: [PATCH] Add test for events --- modules/Mailgateway/UpdateTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/Mailgateway/UpdateTest.php b/modules/Mailgateway/UpdateTest.php index ad8cf72d..e84cb2d2 100644 --- a/modules/Mailgateway/UpdateTest.php +++ b/modules/Mailgateway/UpdateTest.php @@ -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', [