diff --git a/tests/update/get_updates_test.php b/tests/update/get_updates_test.php index b21a53659d..015afc3131 100644 --- a/tests/update/get_updates_test.php +++ b/tests/update/get_updates_test.php @@ -68,8 +68,7 @@ class phpbb_update_get_updates_test extends phpbb_test_case ->with('GET', 'http://example.com/update.zip', [ 'sink' => '/path/to/storage', 'allow_redirects' => false - ]) - ->willReturn(true); + ]); $client_reflection = new \ReflectionProperty($this->update, 'http_client'); $client_reflection->setValue($this->update, $this->http_client); @@ -84,7 +83,7 @@ class phpbb_update_get_updates_test extends phpbb_test_case ->method('request') ->willReturnCallback(function ($method, $url, $options) { - throw new ClientException('bad client', new \GuzzleHttp\Psr7\Request($method, $url)); + throw new ClientException('bad client', new \GuzzleHttp\Psr7\Request($method, $url), new \GuzzleHttp\Psr7\Response()); }); $client_reflection = new \ReflectionProperty($this->update, 'http_client'); $client_reflection->setValue($this->update, $this->http_client);