diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-11-12 20:07:06 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-11-12 20:07:06 +0000 |
commit | e88a21782dc9940a17a2108aed3f1517c943cac0 (patch) | |
tree | 251b6deda60042ebcee584ec2ff561d80ee9d0c7 /modules | |
parent | 2387e71f6d163f88ab3194cec0159afa858f03aa (diff) | |
download | brdo-e88a21782dc9940a17a2108aed3f1517c943cac0.tar.gz brdo-e88a21782dc9940a17a2108aed3f1517c943cac0.tar.bz2 |
- Rollback of #447816.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/field/field.test | 4 | ||||
-rw-r--r-- | modules/simpletest/tests/form.test | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/field/field.test b/modules/field/field.test index 49c0f30ba..b85c4c594 100644 --- a/modules/field/field.test +++ b/modules/field/field.test @@ -1432,7 +1432,7 @@ class FieldFormTestCase extends FieldTestCase { // Submit with missing required value. $edit = array(); $this->drupalPost('test-entity/add/test-bundle', $edit, t('Save')); - $this->assertText(t('!name field is required.', array('!name' => $this->instance['label'])), 'Required field with no value fails validation'); + $this->assertRaw(t('!name field is required.', array('!name' => $this->instance['label'])), 'Required field with no value fails validation'); // Create an entity $value = mt_rand(1, 127); @@ -1448,7 +1448,7 @@ class FieldFormTestCase extends FieldTestCase { $value = ''; $edit = array("{$this->field_name}[$langcode][0][value]" => $value); $this->drupalPost('test-entity/' . $id . '/edit', $edit, t('Save')); - $this->assertText(t('!name field is required.', array('!name' => $this->instance['label'])), 'Required field with no value fails validation'); + $this->assertRaw(t('!name field is required.', array('!name' => $this->instance['label'])), 'Required field with no value fails validation'); } // function testFieldFormMultiple() { diff --git a/modules/simpletest/tests/form.test b/modules/simpletest/tests/form.test index f0198abe1..c1271c459 100644 --- a/modules/simpletest/tests/form.test +++ b/modules/simpletest/tests/form.test @@ -52,7 +52,7 @@ class FormsTestCase extends DrupalWebTestCase { $elements['file']['empty_values'] = $empty_strings; // Regular expression to find the expected marker on required elements. - $required_marker_preg = '@<label.*<span class="form-required" title="This field is required\.">\*</span>.*</label>@'; + $required_marker_preg = '@<label.*<span class="form-required" title="This field is required\.">\*</span></label>@'; // Go through all the elements and all the empty values for them foreach ($elements as $type => $data) { |