Skip to content

Commit 1d01bf8

Browse files
committed
Test changes with L9
1 parent e5ebd72 commit 1d01bf8

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
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": {
@@ -37,7 +37,7 @@
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",
@@ -50,7 +50,7 @@
5050
},
5151
"extra": {
5252
"branch-alias": {
53-
"dev-master": "2.x-dev"
53+
"dev-master": "9.x-dev"
5454
},
5555
"laravel": {
5656
"providers": [

src/ProcessMailgunWebhookJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use BinaryCats\MailgunWebhooks\Exceptions\WebhookFailed;
66
use Illuminate\Support\Arr;
77
use Illuminate\Support\Str;
8-
use Spatie\WebhookClient\ProcessWebhookJob;
8+
use Spatie\WebhookClient\Jobs\ProcessWebhookJob;
99

1010
class ProcessMailgunWebhookJob extends ProcessWebhookJob
1111
{

tests/MailgunWebhookCallTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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);

tests/TestCase.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)