diff options
Diffstat (limited to 'modules/path/path.test')
-rw-r--r-- | modules/path/path.test | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/path/path.test b/modules/path/path.test index e6a60232b..c8d9f1015 100644 --- a/modules/path/path.test +++ b/modules/path/path.test @@ -190,12 +190,13 @@ class PathTaxonomyTermTestCase extends DrupalWebTestCase { */ function testTermAlias() { // Create a term in the default 'Tags' vocabulary with URL alias. + $vocabulary = taxonomy_vocabulary_load(1); $description = $this->randomName();; $edit = array(); $edit['name'] = $this->randomName(); $edit['description[value]'] = $description; $edit['path[alias]'] = $this->randomName(); - $this->drupalPost('admin/structure/taxonomy/1/add', $edit, t('Save')); + $this->drupalPost('admin/structure/taxonomy/' . $vocabulary->machine_name . '/add', $edit, t('Save')); // Confirm that the alias works. $this->drupalGet($edit['path[alias]']); |