You are here

public function ServicesWebTestCase::populateEndpointFAPI in Services 7.3

Same name and namespace in other branches
  1. 6.3 tests/functional/ServicesWebTestCase.php \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.

9 calls to ServicesWebTestCase::populateEndpointFAPI()
ServicesAliasTests::setUp in tests/functional/ServicesAliasTests.test
Sets up a Drupal site for running functional and integration tests.
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.

... See full list

1 method overrides ServicesWebTestCase::populateEndpointFAPI()
ServicesArgumentsTestCase::populateEndpointFAPI in tests/functional/ServicesArgumentsTests.test
Creates a data array for populating an endpoint creation form.

File

tests/services.test, line 286

Class

ServicesWebTestCase

Code

public function populateEndpointFAPI() {
  return array(
    'name' => strtolower($this
      ->randomName(10)),
    'path' => $this
      ->randomName(10),
    'server' => 'rest_server',
  );
}