Skip to content

Commit

Permalink
Discovery: Fix assertions in testConfigDisableCertCheck().
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote committed Feb 11, 2025
1 parent 90a1339 commit 2f18cd3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/src/Kernel/DiscoveryFetcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ public function testConfigServerAddressTrailingSlashes(): void {
}

/**
* Tests error behavior when the 'cool.server' setting is empty.
* Tests the effect of the 'cool.disable_cert_check' setting.
*
* @see \GuzzleHttp\RequestOptions::VERIFY
*/
public function testConfigDisableCertCheck(): void {
// Also test with NULL to verify the fallback value.
Expand All @@ -226,7 +228,7 @@ public function testConfigDisableCertCheck(): void {
$this->assertCount(3, $this->httpClientGetCalls);
$this->assertFalse($this->httpClientGetCalls[0][1]['verify']);
$this->assertTrue($this->httpClientGetCalls[1][1]['verify']);
$this->assertTrue($this->httpClientGetCalls[1][1]['verify']);
$this->assertTrue($this->httpClientGetCalls[2][1]['verify']);
}

/**
Expand Down

0 comments on commit 2f18cd3

Please sign in to comment.