public function ServicesEndpointTests::testEndpointForm in Services 6.3
Same name and namespace in other branches
- 7.3 tests/functional/ServicesEndpointTests.test \ServicesEndpointTests::testEndpointForm()
Test adding an endpoint succeeds.
File
- tests/
functional/ ServicesEndpointTests.test, line 33
Class
- ServicesEndpointTests
- Run test cases for the endpoint with no authentication turned on.
Code
public function testEndpointForm() {
// Create and log in our privileged user.
$this->privilegedUser = $this
->drupalCreateUser(array(
'administer services',
'administer site configuration',
));
$this
->drupalLogin($this->privilegedUser);
$edit = $this
->populateEndpointFAPI();
$this
->drupalPost('admin/build/services/add', $edit, t('Save'));
$this
->drupalGet($edit['path']);
}