diff --git a/tests/Feature/Webhooks/DispatchWebhooksTest.php b/tests/Feature/Webhooks/DispatchWebhooksTest.php index 477927353..ae85ccb7e 100644 --- a/tests/Feature/Webhooks/DispatchWebhooksTest.php +++ b/tests/Feature/Webhooks/DispatchWebhooksTest.php @@ -68,7 +68,7 @@ class DispatchWebhooksTest extends TestCase 'events' => ['eloquent.created: '.Server::class], ]); - $webhookConfig->update(['events' => 'eloquent.deleted: '.Server::class]); + $webhookConfig->update(['events' => ['eloquent.deleted: '.Server::class]]); $this->createServer(); diff --git a/tests/Feature/Webhooks/ProcessWebhooksTest.php b/tests/Feature/Webhooks/ProcessWebhooksTest.php index 40c6a3382..c06c43189 100644 --- a/tests/Feature/Webhooks/ProcessWebhooksTest.php +++ b/tests/Feature/Webhooks/ProcessWebhooksTest.php @@ -64,7 +64,7 @@ class ProcessWebhooksTest extends TestCase ProcessWebhook::dispatchSync( $webhook, 'eloquent.created: '.Server::class, - $data, + [$data], ); $this->assertCount(1, cache()->get("webhooks.$eventName"));