mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-10 03:38:55 +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],
|
'events' => ['eloquent.created: '.Server::class],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$webhookConfig->update(['events' => 'eloquent.deleted: '.Server::class]);
|
$webhookConfig->update(['events' => ['eloquent.deleted: '.Server::class]]);
|
||||||
|
|
||||||
$this->createServer();
|
$this->createServer();
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ class ProcessWebhooksTest extends TestCase
|
|||||||
ProcessWebhook::dispatchSync(
|
ProcessWebhook::dispatchSync(
|
||||||
$webhook,
|
$webhook,
|
||||||
'eloquent.created: '.Server::class,
|
'eloquent.created: '.Server::class,
|
||||||
$data,
|
[$data],
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->assertCount(1, cache()->get("webhooks.$eventName"));
|
$this->assertCount(1, cache()->get("webhooks.$eventName"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user