Skip to content

Commit 12f5dbd

Browse files
committed
test fix
1 parent c35e789 commit 12f5dbd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/Service/Webhook/ClientTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ public function testCallWebhooks(array $expectedRetryWebhooks, int $expectedCall
3333
$httpClient = $this->createMock(\GuzzleHttp\Client::class);
3434
$httpClient->method('request')->willReturnCallback(static function (string $method, string $uri, array $options) use (&$httpCalls): Response {
3535
$httpCalls++;
36-
if (($options[RequestOptions::JSON]->params->attributes['call'] ?? null) === 'fail') {
36+
if (($options[RequestOptions::JSON]->params->attributes[0]->value ?? null) === 'fail') {
3737
throw new \RuntimeException();
3838
}
3939

40-
if (($options[RequestOptions::JSON]->params->attributes['call'] ?? null) === 'stop') {
40+
if (($options[RequestOptions::JSON]->params->attributes[0]->value ?? null) === 'stop') {
4141
return new Response(200, body: '{"stopDispatching":true}');
4242
}
4343

test/Service/Webhook/LaravelMysqlRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function testLoadForDispatching(array $expectedUrls, string $type, array
110110

111111
$webhooks = $repository->loadForDispatching($type, $attributes);
112112

113-
self::assertEquals($expectedWebhooks, $webhooks);
113+
self::assertEquals(new \ArrayIterator($expectedWebhooks), $webhooks);
114114
}
115115

116116
/**

0 commit comments

Comments
 (0)