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