function _wsfields_storage_test_endpoint_config in Web Service Data 7
Defines a test server to work with
1 call to _wsfields_storage_test_endpoint_config()
- WsfieldsStorageTestCase::setUp in modules/
wsfields_storage/ wsfields_storage.test - Sets up a Drupal site for running functional and integration tests.
File
- modules/
wsfields_storage/ wsfields_storage.test, line 102 - Describe the file
Code
function _wsfields_storage_test_endpoint_config() {
$endpoint = new stdClass();
$endpoint->disabled = FALSE;
/* Edit this to true to make a default endpoint disabled initially */
$endpoint->api_version = 3;
$endpoint->name = 'testservice';
$endpoint->server = 'rest_server';
$endpoint->path = 'testservice';
$endpoint->authentication = array();
$endpoint->server_settings = array();
$endpoint->resources = array(
'node' => array(
'operations' => array(
'retrieve' => array(
'enabled' => 1,
),
'create' => array(
'enabled' => 1,
),
'update' => array(
'enabled' => 1,
),
'delete' => array(
'enabled' => 1,
),
),
),
);
$endpoint->debug = 0;
return $endpoint;
}