Page MenuHomeDevCentral

D649.diff
No OneTemporary

D649.diff

diff --git a/tests/DockerHubImageTest.php b/tests/DockerHubImageTest.php
--- a/tests/DockerHubImageTest.php
+++ b/tests/DockerHubImageTest.php
@@ -38,7 +38,7 @@
}
public function testGetTriggerBuild () {
- $client = $this->mockHttpClient(200);
+ $client = self::mockHttpClient(200);
$this->assertInstanceOf(
TriggerBuild::class,
$this->image->getTriggerBuild($client, '0000')
diff --git a/tests/WithMockHttpClient.php b/tests/WithMockHttpClient.php
--- a/tests/WithMockHttpClient.php
+++ b/tests/WithMockHttpClient.php
@@ -15,7 +15,7 @@
* @param int $httpResponseCode The HTTP response code to mock
* @return \GuzzleHttp\Client
*/
- protected function mockHttpClient ($httpResponseCode) {
+ protected static function mockHttpClient ($httpResponseCode = 200) {
$handler = self::getCustomMockHttpClientHandler($httpResponseCode);
return new Client(['handler' => $handler]);
}

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 7, 01:29 (21 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2232459
Default Alt Text
D649.diff (986 B)

Event Timeline