You are here

public function ServicesViewsApiTestCase::saveNewEndpoint in Services Views 7

Overrides ServicesWebTestCase::saveNewEndpoint

1 call to ServicesViewsApiTestCase::saveNewEndpoint()
ServicesViewsSecurityUpgradePathTest::setUp in tests/services_views_upgrade_path.test
Sets up a Drupal site for running functional and integration tests.

File

tests/services_views.test, line 30

Class

ServicesViewsApiTestCase

Code

public function saveNewEndpoint() {
  $endpoint = parent::saveNewEndpoint();
  $endpoint->resources['views'] = array(
    'operations' => array(
      'retrieve' => array(
        'enabled' => 1,
      ),
    ),
  );
  services_endpoint_save($endpoint);
  return services_endpoint_load($endpoint->name);
}