function PathautoUnitTestCase::testGetRawTokens in Pathauto 6.2
Same name and namespace in other branches
- 6 pathauto.test \PathautoUnitTestCase::testGetRawTokens()
Test _pathauto_get_raw_tokens().
File
- ./
pathauto.test, line 295 - Functionality tests for Pathauto.
Class
- PathautoUnitTestCase
- Unit tests for Pathauto functions.
Code
function testGetRawTokens() {
$raw_tokens = _pathauto_get_raw_tokens();
$this
->assertFalse(in_array('node-path', $raw_tokens), 'Non-raw tokens not included.');
$this
->assertTrue(in_array('node-path-raw', $raw_tokens), 'Token [catpath] has a matching raw token.');
$this
->assertFalse(in_array('node-url-raw', $raw_tokens), 'Token [catalias] does not have a matching raw token.');
}