diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-08-18 00:44:52 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-08-18 00:44:52 +0000 |
commit | 26dce525a2928967aaa34280e5e36d9a46226d75 (patch) | |
tree | c932abea02c0ef16b5578e26371ee1fd076d5a7c /modules | |
parent | c89edfa45ae04269c6b8d5d3ab9971020128f713 (diff) | |
download | brdo-26dce525a2928967aaa34280e5e36d9a46226d75.tar.gz brdo-26dce525a2928967aaa34280e5e36d9a46226d75.tar.bz2 |
- Rollback of #447816 -- didn't meant to commit that just yet.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/field/tests/field.test | 4 | ||||
-rw-r--r-- | modules/simpletest/tests/form.test | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/field/tests/field.test b/modules/field/tests/field.test index b932479c8..479b0a966 100644 --- a/modules/field/tests/field.test +++ b/modules/field/tests/field.test @@ -1300,7 +1300,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); @@ -1316,7 +1316,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 32865c01e..525a8a291 100644 --- a/modules/simpletest/tests/form.test +++ b/modules/simpletest/tests/form.test @@ -63,7 +63,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) { |