You are here

public function MockServicesRESTServerFactory::__construct in Services 7.3

We need data property to pass additional arguments to methods.

Required property is 'endpoint_path' -- base path of endpoint. Example: GET rest/node/1.php -- "rest" is endpoint path.

Overrides ServicesRESTServerFactory::__construct

File

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

Class

MockServicesRESTServerFactory
Factory to build RESTServer object for testing.

Code

public function __construct($data = array()) {
  parent::__construct($data);
  drupal_static_reset();
}