File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 66use Illuminate \Queue \Events \JobFailed ;
77use Illuminate \Support \Facades \Event ;
88use Mockery \MockInterface ;
9+ use function Pest \Laravel \artisan ;
10+ use function Pest \Laravel \mock ;
911use Spatie \TestTime \TestTime ;
1012use Spatie \WebhookServer \BackoffStrategy \ExponentialBackoffStrategy ;
1113use Spatie \WebhookServer \Events \FinalWebhookCallFailedEvent ;
1214use Spatie \WebhookServer \Events \WebhookCallFailedEvent ;
15+
1316use Spatie \WebhookServer \Tests \TestClasses \TestClient ;
1417use Spatie \WebhookServer \WebhookCall ;
1518
16- use function Pest \Laravel \artisan ;
17- use function Pest \Laravel \mock ;
18-
1919function baseWebhook (): WebhookCall
2020{
2121 return WebhookCall::create ()
Original file line number Diff line number Diff line change 11<?php
22
33use Illuminate \Support \Facades \Queue ;
4+ use function PHPUnit \Framework \assertTrue ;
45use Spatie \WebhookServer \CallWebhookJob ;
56use Spatie \WebhookServer \Exceptions \CouldNotCallWebhook ;
67use Spatie \WebhookServer \Exceptions \InvalidBackoffStrategy ;
78use Spatie \WebhookServer \Exceptions \InvalidSigner ;
89use Spatie \WebhookServer \Exceptions \InvalidWebhookJob ;
9- use Spatie \WebhookServer \WebhookCall ;
1010
11- use function PHPUnit \ Framework \ assertTrue ;
11+ use Spatie \ WebhookServer \ WebhookCall ;
1212
1313beforeEach (function () {
1414 Queue::fake ();
110110})->throws (InvalidSigner::class);
111111
112112it ('will throw an exception when using an invalid webhook job ' , function () {
113- $ invalidJob = new class
114- {
113+ $ invalidJob = new class {
115114 };
116115
117116 WebhookCall::create ()->useJob ($ invalidJob ::class);
You can’t perform that action at this time.
0 commit comments