public function ServicesEndpointTests::populateEndpointFAPI in Services 6.3
Creates a data array for populating an endpoint creation form.
Return value
An array of fields for fully populating an endpoint creation form.
Overrides ServicesWebTestCase::populateEndpointFAPI
5 calls to ServicesEndpointTests::populateEndpointFAPI()
- ServicesEndpointTests::saveNewEndpoint in tests/functional/ ServicesEndpointTests.test 
- ServicesEndpointTests::testEndpointForm in tests/functional/ ServicesEndpointTests.test 
- Test adding an endpoint succeeds.
- ServicesEndpointTests::testMissingPath in tests/functional/ ServicesEndpointTests.test 
- Test missing path to endpoint causes an error.
- ServicesEndpointTests::testMissingServer in tests/functional/ ServicesEndpointTests.test 
- Test missing server for endpoint causes an error.
- ServicesEndpointTests::testSuccessfulAddEndpoint in tests/functional/ ServicesEndpointTests.test 
- Test adding an endpoint succeeds.
File
- tests/functional/ ServicesEndpointTests.test, line 128 
Class
- ServicesEndpointTests
- Run test cases for the endpoint with no authentication turned on.
Code
public function populateEndpointFAPI() {
  return array(
    'name' => 'machinename',
    'path' => $this
      ->randomName(10),
    'server' => 'rest_server',
    'services_use_content_permissions' => TRUE,
  );
}