You are here

class MockServicesContext in Services 7.3

Mock ServicesContext object.

Hierarchy

Expanded class hierarchy of MockServicesContext

File

servers/rest_server/tests/rest_server_mock_classes.inc, line 45

View source
class MockServicesContext extends ServicesContext {
  public function setData($data) {
    $this->data = array_merge($this->data, $data);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MockServicesContext::setData public function
ServicesContext::$data protected property Main storage of all data.
ServicesContext::buildFromGlobals public function Build all context data from global variables. Overrides ServicesContextInterface::buildFromGlobals
ServicesContext::getCanonicalPath public function Retrieve canonical path. Overrides ServicesContextInterface::getCanonicalPath
ServicesContext::getEndpointPath public function Retrieve endpoint path. It is saved in constructor. Overrides ServicesContextInterface::getEndpointPath
ServicesContext::getGetVariable public function Access to $_GET variables. Overrides ServicesContextInterface::getGetVariable
ServicesContext::getPostData public function Return value of global $_POST. Overrides ServicesContextInterface::getPostData
ServicesContext::getRequestBody public function Return value of the request body. Overrides ServicesContextInterface::getRequestBody
ServicesContext::getRequestBodyData protected function Fetch request body using php://input handler.
ServicesContext::getRequestMethod public function Determine Request Method of the request.
ServicesContext::getRequestMethodFromGlobals protected function Retrieve request method from global variables.
ServicesContext::getServerVariable public function Access to $_SERVER variables. Overrides ServicesContextInterface::getServerVariable
ServicesContext::isRequestHasPostBody protected function Determine whether we should expect request body to be available.
ServicesContext::__construct function Context constructor.