Skip to content
Snippets Groups Projects
Commit 717f6c27 authored by Aaron Bauman's avatar Aaron Bauman
Browse files

Fix failing rest client test with missing guzzle request method

parent 52b402d7
No related branches found
No related tags found
No related merge requests found
...@@ -415,13 +415,13 @@ class RestClientTest extends UnitTestCase { ...@@ -415,13 +415,13 @@ class RestClientTest extends UnitTestCase {
->method('apiCall') ->method('apiCall')
->willReturn(NULL); ->willReturn(NULL);
$exception404 = new RequestException('', new GuzzleRequest('', ''), new GuzzleResponse(404, [], '')); $exception404 = new RequestException('', new GuzzleRequest('GET', ''), new GuzzleResponse(404, [], ''));
$this->client->expects($this->at(1)) $this->client->expects($this->at(1))
->method('apiCall') ->method('apiCall')
->will($this->throwException($exception404)); ->will($this->throwException($exception404));
// Test the objectDelete throws any other exception. // Test the objectDelete throws any other exception.
$exceptionOther = new RequestException('', new GuzzleRequest('', ''), new GuzzleResponse(456, [], '')); $exceptionOther = new RequestException('', new GuzzleRequest('GET', ''), new GuzzleResponse(456, [], ''));
$this->client->expects($this->at(2)) $this->client->expects($this->at(2))
->method('apiCall') ->method('apiCall')
->will($this->throwException($exceptionOther)); ->will($this->throwException($exceptionOther));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment