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/field_ui/field_ui.test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/field_ui') diff --git a/modules/field_ui/field_ui.test b/modules/field_ui/field_ui.test index 67a602a34..510a09356 100644 --- a/modules/field_ui/field_ui.test +++ b/modules/field_ui/field_ui.test @@ -92,7 +92,8 @@ class FieldUITestCase extends DrupalWebTestCase { // Assert the field appears in the "add existing field" section for // different entity types; e.g. if a field was added in a node entity, it // should also appear in the 'taxonomy term' entity. - $this->drupalGet('admin/structure/taxonomy/1/fields'); + $vocabulary = taxonomy_vocabulary_load(1); + $this->drupalGet('admin/structure/taxonomy/' . $vocabulary->machine_name . '/fields'); $this->assertTrue($this->xpath('//select[@id="edit--add-existing-field-field-name"]//option[@value="' . $this->field_name . '"]'), t('Existing field was found in account settings.')); } -- cgit v1.2.3