diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-09-02 20:44:56 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-09-02 20:44:56 +0000 |
commit | ef6589aae46bd75df27f657a350082cfdeef9021 (patch) | |
tree | 9355f7af0055370359b418937ade10e8a27dba04 /modules/field_ui | |
parent | 819c617e79e6fac2caa919615333169ad6cdbaed (diff) | |
download | brdo-ef6589aae46bd75df27f657a350082cfdeef9021.tar.gz brdo-ef6589aae46bd75df27f657a350082cfdeef9021.tar.bz2 |
- Patch #680416 by Amitaibu: make the tests actually do something.
Diffstat (limited to 'modules/field_ui')
-rw-r--r-- | modules/field_ui/field_ui.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/field_ui/field_ui.test b/modules/field_ui/field_ui.test index 5baaa341a..ecc2ea5c2 100644 --- a/modules/field_ui/field_ui.test +++ b/modules/field_ui/field_ui.test @@ -132,7 +132,7 @@ class FieldUITestCase extends DrupalWebTestCase { // Check that the list of options respects entity type restrictions on // fields. The 'comment' field is restricted to the 'comment' entity type // and should not appear in the list. - $this->assertFalse($this->xpath('//select[@id="edit--add-existing-field-field-name"]//option[@value="comment"]'), t('The list of options respects entity type restrictions.')); + $this->assertFalse($this->xpath('//select[@id="edit-add-existing-field-field-name"]//option[@value="comment"]'), t('The list of options respects entity type restrictions.')); // Add a new field based on an existing field. $edit = array( @@ -272,7 +272,7 @@ class FieldUITestCase extends DrupalWebTestCase { // Check that the field type is not available in the 'add new field' row. $this->drupalGet($bundle_path); - $this->assertFalse($this->xpath('//select[@id="edit--add-new-field-type"]//option[@value="hidden_test_field"]'), t("The 'add new field' select respects field types 'no_ui' property.")); + $this->assertFalse($this->xpath('//select[@id="edit-add-new-field-type"]//option[@value="hidden_test_field"]'), t("The 'add new field' select respects field types 'no_ui' property.")); // Create a field and an instance programmatically. $field_name = 'hidden_test_field'; @@ -296,7 +296,7 @@ class FieldUITestCase extends DrupalWebTestCase { // on other bundles. $bundle_path = 'admin/structure/types/manage/article/fields/'; $this->drupalGet($bundle_path); - $this->assertFalse($this->xpath('//select[@id="edit--add-existing-field-field-name"]//option[@value=:field_name]', array(':field_name' => $field_name)), t("The 'add existing field' select respects field types 'no_ui' property.")); + $this->assertFalse($this->xpath('//select[@id="edit-add-existing-field-field-name"]//option[@value=:field_name]', array(':field_name' => $field_name)), t("The 'add existing field' select respects field types 'no_ui' property.")); } /** |