public function ServicesAliasTests::testUnderscoreAlias in Services 7.3
Testing parser functionality.
File
- tests/
functional/ ServicesAliasTests.test, line 120 - Test to confirm Aliases functionality.
Class
- ServicesAliasTests
- Test case class for Alias tests.
Code
public function testUnderscoreAlias() {
// Create and log in our privileged user.
$this->privilegedUser = $this
->drupalCreateUser(array(
'administer services',
));
$this
->drupalLogin($this->privilegedUser);
$node = $this
->drupalCreateNode();
$responseArray = $this
->servicesGet($this->endpoint->path . '/node_alias/' . $node->nid);
$this
->assertTrue($node->title == $responseArray['body']->title, 'Successfully received Node info', 'Alias: node Retrieve');
}