You are here

public function ServicesWebTestCase::populateEndpointFAPI in Services 6.3

Same name and namespace in other branches
  1. 7.3 tests/services.test \ServicesWebTestCase::populateEndpointFAPI()

Creates a data array for populating an endpoint creation form.

Return value

An array of fields for fully populating an endpoint creation form.

2 calls to ServicesWebTestCase::populateEndpointFAPI()
ServicesParserTests::setUp in tests/functional/ServicesParserTests.test
Implementation of setUp().
ServicesWebTestCase::saveNewEndpoint in tests/functional/ServicesWebTestCase.php
1 method overrides ServicesWebTestCase::populateEndpointFAPI()
ServicesEndpointTests::populateEndpointFAPI in tests/functional/ServicesEndpointTests.test
Creates a data array for populating an endpoint creation form.

File

tests/functional/ServicesWebTestCase.php, line 168
Services base testing class.

Class

ServicesWebTestCase
@file Services base testing class.

Code

public function populateEndpointFAPI() {
  return array(
    'name' => 'machinename',
    'title' => $this
      ->randomName(20),
    'path' => $this
      ->randomName(10),
    'server' => 'rest_server',
    'services_use_content_permissions' => TRUE,
  );
}