diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-03-25 11:53:25 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-03-25 11:53:25 +0000 |
commit | cca8e7e5acf71bc1462ef9197858a1629e96e6a3 (patch) | |
tree | 2e7b9e1cceb586d9d49c13ea89d211ab43a4894a /modules/path | |
parent | cfe7f8e69f9156284e1daf57921d89de256abda2 (diff) | |
download | brdo-cca8e7e5acf71bc1462ef9197858a1629e96e6a3.tar.gz brdo-cca8e7e5acf71bc1462ef9197858a1629e96e6a3.tar.bz2 |
- Patch #744258 by sun: admin/structure/taxonomy paths have to use machine_name(), not vid.
Diffstat (limited to 'modules/path')
-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]']); |