diff --git a/tests/src/Unit/RestClientTest.php b/tests/src/Unit/RestClientTest.php
index 3e2703864ce5dcac1c84091df70c3e4c7e49b2c8..424c073df22c0382ec11a9566416f1f406933ea3 100644
--- a/tests/src/Unit/RestClientTest.php
+++ b/tests/src/Unit/RestClientTest.php
@@ -415,13 +415,13 @@ class RestClientTest extends UnitTestCase {
       ->method('apiCall')
       ->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))
       ->method('apiCall')
       ->will($this->throwException($exception404));
 
     // 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))
       ->method('apiCall')
       ->will($this->throwException($exceptionOther));