public function AquiaAgentUnitTestCase::testIdFromSub in Acquia Connector 7.3
Same name and namespace in other branches
- 7.2 acquia_agent/tests/acquia_agent.test \AquiaAgentUnitTestCase::testIdFromSub()
Test ID from sub.
File
- acquia_agent/
tests/ acquia_agent.test, line 487 - Tests the functionality of the Acquia Agent module.
Class
- AquiaAgentUnitTestCase
- Unit tests.
Code
public function testIdFromSub() {
$uuid = _acquia_agent_get_id_from_sub(array(
'uuid' => 'test',
));
$this
->assertIdentical('test', $uuid, 'UUID property identical');
$data = array(
'href' => 'http://example.com/network/uuid/test/dashboard',
);
$uuid = _acquia_agent_get_id_from_sub($data);
$this
->assertIdentical('test', $uuid, 'UUID extracted from href');
}