From b903c732a1c44522dd88368028516873275612be Mon Sep 17 00:00:00 2001 From: Robbie Mackay Date: Thu, 18 May 2017 14:39:02 +1200 Subject: [PATCH] Fix up RestContext OPTIONS requests --- tests/integration/bootstrap/RestContext.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/integration/bootstrap/RestContext.php b/tests/integration/bootstrap/RestContext.php index da0c837a19..31bf980f06 100644 --- a/tests/integration/bootstrap/RestContext.php +++ b/tests/integration/bootstrap/RestContext.php @@ -155,8 +155,8 @@ public function thatIWantToDeleteA($objectType) public function thatIWantToMakeAnOptionsRequest() { // Reset _restObject - $this->_restObject = new stdClass(); - $this->_restObjectMethod = 'options'; + $this->restObject = new stdClass(); + $this->restObjectMethod = 'options'; } /** @@ -245,10 +245,10 @@ public function iRequest($pageUrl) ->delete($this->requestUrl.'/'.$id); break; case 'OPTIONS': - $request = (array)$this->_restObject; + $request = (array)$this->restObject; $id = ( isset($request['id']) ) ? $request['id'] : ''; - $http_request = $this->_client - ->options($this->_requestUrl.'/'.$id); + $http_request = $this->client + ->options($this->requestUrl.'/'.$id); break; }