File tree Expand file tree Collapse file tree 4 files changed +14
-13
lines changed Expand file tree Collapse file tree 4 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 18
18
}
19
19
],
20
20
"require" : {
21
- "php" : " ^7.4|^ 8.0" ,
21
+ "php" : " ^8.0" ,
22
22
"illuminate/support" : " ^8.0|^9.0" ,
23
- "spatie/laravel-webhook-client" : " ^2 .0"
23
+ "spatie/laravel-webhook-client" : " ^3 .0"
24
24
},
25
25
"require-dev" : {
26
- "orchestra/testbench" : " ^6.0" ,
27
- "phpunit/phpunit" : " ^9.3.3 "
26
+ "orchestra/testbench" : " ^6.0|^7.0 " ,
27
+ "phpunit/phpunit" : " ^9.4 "
28
28
},
29
29
"autoload" : {
30
30
"psr-4" : {
37
37
}
38
38
},
39
39
"suggest" : {
40
- "binary-cats/laravel-mail-helpers " : " ^6 .0"
40
+ "binary-cats/laravel-lob-webhooks " : " ^9 .0"
41
41
},
42
42
"scripts" : {
43
43
"analyze" : " ./vendor/bin/phpstan analyse src --memory-limit=2G" ,
50
50
},
51
51
"extra" : {
52
52
"branch-alias" : {
53
- "dev-master" : " 2 .x-dev"
53
+ "dev-master" : " 9 .x-dev"
54
54
},
55
55
"laravel" : {
56
56
"providers" : [
Original file line number Diff line number Diff line change 5
5
use BinaryCats \MailgunWebhooks \Exceptions \WebhookFailed ;
6
6
use Illuminate \Support \Arr ;
7
7
use Illuminate \Support \Str ;
8
- use Spatie \WebhookClient \ProcessWebhookJob ;
8
+ use Spatie \WebhookClient \Jobs \ ProcessWebhookJob ;
9
9
10
10
class ProcessMailgunWebhookJob extends ProcessWebhookJob
11
11
{
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ public function setUp(): void
30
30
'key ' => 'value ' ,
31
31
],
32
32
],
33
+ 'url ' => '/webhooks/mailgun.com ' ,
33
34
]);
34
35
35
36
$ this ->processMailgunWebhookJob = new ProcessMailgunWebhookJob ($ this ->webhookCall );
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ public function setUp(): void
28
28
*/
29
29
protected function getEnvironmentSetUp ($ app )
30
30
{
31
- $ app [ ' config ' ] ->set ('database.default ' , 'sqlite ' );
32
- $ app [ ' config ' ] ->set ('database.connections.sqlite ' , [
33
- 'driver ' => 'sqlite ' ,
31
+ config () ->set ('database.default ' , 'sqlite ' );
32
+ config () ->set ('database.connections.sqlite ' , [
33
+ 'driver ' => 'sqlite ' ,
34
34
'database ' => ':memory: ' ,
35
- 'prefix ' => '' ,
35
+ 'prefix ' => '' ,
36
36
]);
37
37
38
38
config (['mailgun-webhooks.signing_secret ' => 'test_signing_secret ' ]);
@@ -43,9 +43,9 @@ protected function getEnvironmentSetUp($app)
43
43
*/
44
44
protected function setUpDatabase ()
45
45
{
46
- include_once __DIR__ .'/../vendor/spatie/laravel-webhook-client/database/migrations/create_webhook_calls_table.php.stub ' ;
46
+ $ migration = include __DIR__ .'/../vendor/spatie/laravel-webhook-client/database/migrations/create_webhook_calls_table.php.stub ' ;
47
47
48
- ( new CreateWebhookCallsTable ()) ->up ();
48
+ $ migration ->up ();
49
49
}
50
50
51
51
/**
You can’t perform that action at this time.
0 commit comments