Skip to content

Commit

Permalink
Fix up RestContext OPTIONS requests
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmackay committed May 18, 2017
1 parent bd88ec5 commit b903c73
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integration/bootstrap/RestContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

/**
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit b903c73

Please sign in to comment.