1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Applied latest StyleCI changes

This commit is contained in:
Dan Brown
2021-12-18 11:43:05 +00:00
parent a3ead5062a
commit 04f37e21e2
13 changed files with 53 additions and 52 deletions

View File

@ -15,7 +15,6 @@ use Tests\TestCase;
class WebhookCallTest extends TestCase
{
public function test_webhook_listening_to_all_called_on_event()
{
$this->newWebhook([], ['all']);
@ -73,8 +72,9 @@ class WebhookCallTest extends TestCase
$this->runEvent(ActivityType::PAGE_UPDATE, $page, $editor);
Http::assertSent(function(Request $request) use ($editor, $page, $webhook) {
Http::assertSent(function (Request $request) use ($editor, $page, $webhook) {
$reqData = $request->data();
return $request->isJson()
&& $reqData['event'] === 'page_update'
&& $reqData['text'] === ($editor->name . ' updated page "' . $page->name . '"')
@ -88,7 +88,6 @@ class WebhookCallTest extends TestCase
});
}
protected function runEvent(string $event, $detail = '', ?User $user = null)
{
if (is_null($user)) {
@ -112,5 +111,4 @@ class WebhookCallTest extends TestCase
return $webhook;
}
}
}