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 1818 }
1919 ],
2020 "require" : {
21- "php" : " ^7.4|^ 8.0" ,
21+ "php" : " ^8.0" ,
2222 "illuminate/support" : " ^8.0|^9.0" ,
23- "spatie/laravel-webhook-client" : " ^2 .0"
23+ "spatie/laravel-webhook-client" : " ^3 .0"
2424 },
2525 "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 "
2828 },
2929 "autoload" : {
3030 "psr-4" : {
3737 }
3838 },
3939 "suggest" : {
40- "binary-cats/laravel-mail-helpers " : " ^6 .0"
40+ "binary-cats/laravel-lob-webhooks " : " ^9 .0"
4141 },
4242 "scripts" : {
4343 "analyze" : " ./vendor/bin/phpstan analyse src --memory-limit=2G" ,
5050 },
5151 "extra" : {
5252 "branch-alias" : {
53- "dev-master" : " 2 .x-dev"
53+ "dev-master" : " 9 .x-dev"
5454 },
5555 "laravel" : {
5656 "providers" : [
Original file line number Diff line number Diff line change 55use BinaryCats \MailgunWebhooks \Exceptions \WebhookFailed ;
66use Illuminate \Support \Arr ;
77use Illuminate \Support \Str ;
8- use Spatie \WebhookClient \ProcessWebhookJob ;
8+ use Spatie \WebhookClient \Jobs \ ProcessWebhookJob ;
99
1010class ProcessMailgunWebhookJob extends ProcessWebhookJob
1111{
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ public function setUp(): void
3030 'key ' => 'value ' ,
3131 ],
3232 ],
33+ 'url ' => '/webhooks/mailgun.com ' ,
3334 ]);
3435
3536 $ this ->processMailgunWebhookJob = new ProcessMailgunWebhookJob ($ this ->webhookCall );
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ public function setUp(): void
2828 */
2929 protected function getEnvironmentSetUp ($ app )
3030 {
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 ' ,
3434 'database ' => ':memory: ' ,
35- 'prefix ' => '' ,
35+ 'prefix ' => '' ,
3636 ]);
3737
3838 config (['mailgun-webhooks.signing_secret ' => 'test_signing_secret ' ]);
@@ -43,9 +43,9 @@ protected function getEnvironmentSetUp($app)
4343 */
4444 protected function setUpDatabase ()
4545 {
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 ' ;
4747
48- ( new CreateWebhookCallsTable ()) ->up ();
48+ $ migration ->up ();
4949 }
5050
5151 /**
You can’t perform that action at this time.
0 commit comments