diff options
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) { |