mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-09 10:08:37 +02:00
fix failing feature webhook tests
This commit is contained in:
parent
88943563c7
commit
b838c87af7
@ -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();
|
||||
|
||||
|
@ -64,7 +64,7 @@ class ProcessWebhooksTest extends TestCase
|
||||
ProcessWebhook::dispatchSync(
|
||||
$webhook,
|
||||
'eloquent.created: '.Server::class,
|
||||
$data,
|
||||
[$data],
|
||||
);
|
||||
|
||||
$this->assertCount(1, cache()->get("webhooks.$eventName"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user