Skip to content

Commit 4d13637

Browse files
committed
wip
1 parent 4a34643 commit 4d13637

File tree

3 files changed

+16
-24
lines changed

3 files changed

+16
-24
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"require": {
2121
"php": "^7.4",
2222
"ext-json": "*",
23-
"guzzlehttp/guzzle": "^6.3",
23+
"guzzlehttp/guzzle": "^6.3|^7.0",
2424
"illuminate/bus": "^5.8|^6.0|^7.0|^8.0",
2525
"illuminate/queue": "^5.8|^6.0|^7.0|^8.0",
2626
"illuminate/support": "^5.8|^6.0|^7.0|^8.0"

phpunit.xml.dist

+14-23
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="vendor/autoload.php"
3-
backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
verbose="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
10-
processIsolation="false"
11-
stopOnFailure="false">
12-
<testsuites>
13-
<testsuite name="Spatie Test Suite">
14-
<directory>tests</directory>
15-
</testsuite>
16-
</testsuites>
17-
<php>
18-
<env name="QUEUE_CONNECTION" value="database"/>
19-
</php>
20-
<filter>
21-
<whitelist>
22-
<directory suffix=".php">src/</directory>
23-
</whitelist>
24-
</filter>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3+
<coverage>
4+
<include>
5+
<directory suffix=".php">src/</directory>
6+
</include>
7+
</coverage>
8+
<testsuites>
9+
<testsuite name="Spatie Test Suite">
10+
<directory>tests</directory>
11+
</testsuite>
12+
</testsuites>
13+
<php>
14+
<env name="QUEUE_CONNECTION" value="database"/>
15+
</php>
2516
</phpunit>

tests/CallWebhookJobTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ public function it_sets_the_error_fields_on_connection_failure()
207207
$this->baseWebhook()->dispatch();
208208

209209
$this->artisan('queue:work --once');
210+
210211
Event::assertDispatched(WebhookCallFailedEvent::class, function (WebhookCallFailedEvent $event) {
211212
$this->assertNotNull($event->errorType);
212213
$this->assertNotNull($event->errorMessage);

0 commit comments

Comments
 (0)