From cca8e7e5acf71bc1462ef9197858a1629e96e6a3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 25 Mar 2010 11:53:25 +0000 Subject: - Patch #744258 by sun: admin/structure/taxonomy paths have to use machine_name(), not vid. --- modules/path/path.test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/path') 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]']); -- cgit v1.2.3