function PathautoUnitTestCase::testPathDeleteMultiple in Pathauto 6.2
Same name and namespace in other branches
- 7 pathauto.test \PathautoUnitTestCase::testPathDeleteMultiple()
Test pathauto_path_delete_multiple().
File
- ./
pathauto.test, line 279 - Functionality tests for Pathauto.
Class
- PathautoUnitTestCase
- Unit tests for Pathauto functions.
Code
function testPathDeleteMultiple() {
$this
->saveAlias('node/1', 'node-1-alias');
$this
->saveAlias('node/1/view', 'node-1-alias/view');
$this
->saveAlias('node/1', 'node-1-alias-en', 'en');
$this
->saveAlias('node/1', 'node-1-alias-fr', 'fr');
$this
->saveAlias('node/2', 'node-2-alias');
pathauto_path_delete_all('node/1');
$this
->assertNoAliasExists(array(
'source' => "node/1",
));
$this
->assertNoAliasExists(array(
'source' => "node/1/view",
));
$this
->assertAliasExists(array(
'source' => "node/2",
));
}