File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 6
6
use Illuminate \Queue \Events \JobFailed ;
7
7
use Illuminate \Support \Facades \Event ;
8
8
use Mockery \MockInterface ;
9
+ use function Pest \Laravel \artisan ;
10
+ use function Pest \Laravel \mock ;
9
11
use Spatie \TestTime \TestTime ;
10
12
use Spatie \WebhookServer \BackoffStrategy \ExponentialBackoffStrategy ;
11
13
use Spatie \WebhookServer \Events \FinalWebhookCallFailedEvent ;
12
14
use Spatie \WebhookServer \Events \WebhookCallFailedEvent ;
15
+
13
16
use Spatie \WebhookServer \Tests \TestClasses \TestClient ;
14
17
use Spatie \WebhookServer \WebhookCall ;
15
18
16
- use function Pest \Laravel \artisan ;
17
- use function Pest \Laravel \mock ;
18
-
19
19
function baseWebhook (): WebhookCall
20
20
{
21
21
return WebhookCall::create ()
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
use Illuminate \Support \Facades \Queue ;
4
+ use function PHPUnit \Framework \assertTrue ;
4
5
use Spatie \WebhookServer \CallWebhookJob ;
5
6
use Spatie \WebhookServer \Exceptions \CouldNotCallWebhook ;
6
7
use Spatie \WebhookServer \Exceptions \InvalidBackoffStrategy ;
7
8
use Spatie \WebhookServer \Exceptions \InvalidSigner ;
8
9
use Spatie \WebhookServer \Exceptions \InvalidWebhookJob ;
9
- use Spatie \WebhookServer \WebhookCall ;
10
10
11
- use function PHPUnit \ Framework \ assertTrue ;
11
+ use Spatie \ WebhookServer \ WebhookCall ;
12
12
13
13
beforeEach (function () {
14
14
Queue::fake ();
110
110
})->throws (InvalidSigner::class);
111
111
112
112
it ('will throw an exception when using an invalid webhook job ' , function () {
113
- $ invalidJob = new class
114
- {
113
+ $ invalidJob = new class {
115
114
};
116
115
117
116
WebhookCall::create ()->useJob ($ invalidJob ::class);
You can’t perform that action at this time.
0 commit comments