Skip to content

Commit 472048a

Browse files
committed
Discovery: Fix assertions in testConfigDisableCertCheck().
1 parent 1f10751 commit 472048a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/src/Kernel/DiscoveryFetcherTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,9 @@ public function testConfigServerAddressTrailingSlashes(): void {
212212
}
213213

214214
/**
215-
* Tests error behavior when the 'cool.server' setting is empty.
215+
* Tests the effect of the 'cool.disable_cert_check' setting.
216+
*
217+
* @see \GuzzleHttp\RequestOptions::VERIFY
216218
*/
217219
public function testConfigDisableCertCheck(): void {
218220
// Also test with NULL to verify the fallback value.
@@ -226,7 +228,7 @@ public function testConfigDisableCertCheck(): void {
226228
$this->assertCount(3, $this->httpClientGetCalls);
227229
$this->assertFalse($this->httpClientGetCalls[0][1]['verify']);
228230
$this->assertTrue($this->httpClientGetCalls[1][1]['verify']);
229-
$this->assertTrue($this->httpClientGetCalls[1][1]['verify']);
231+
$this->assertTrue($this->httpClientGetCalls[2][1]['verify']);
230232
}
231233

232234
/**

0 commit comments

Comments
 (0)