diff --git a/modules/media_wysiwyg/tests/media_wysiwyg.paragraph_fix_filter.test b/modules/media_wysiwyg/tests/media_wysiwyg.paragraph_fix_filter.test index 5c6f6c59061e2c96e4225cf3d61995ae2326a57b..610d4f2b111a27f879571c4d5ed19203f9e9d5ed 100644 --- a/modules/media_wysiwyg/tests/media_wysiwyg.paragraph_fix_filter.test +++ b/modules/media_wysiwyg/tests/media_wysiwyg.paragraph_fix_filter.test @@ -82,13 +82,14 @@ class MediaWYSIWYGParagraphFixFilterTest extends MediaWYSIWYGTestHelper { // Check without the filter enabled. $html = $this->drupalGet('node/' . $nid); - $count = preg_match_all($this->regexpMediaTag, $html); + $forphp53compat = array(); + $count = preg_match_all($this->regexpMediaTag, $html, $forphp53compat); $this->assertEqual($count, 3, t('Three media tags found, found @count.', array('@count' => $count))); - $count = preg_match_all($this->regexpPWrapped, $html); + $count = preg_match_all($this->regexpPWrapped, $html, $forphp53compat); $this->assertEqual($count, 3, t('Three media tags with original wrapping HTML present, found @count.', array('@count' => $count))); - $count = preg_match_all($this->regexpReplaced, $html); + $count = preg_match_all($this->regexpReplaced, $html, $forphp53compat); $this->assertEqual($count, 0, t('No media tags with P replaced present, found @count.', array('@count' => $count))); // Enable the default P fix filter. @@ -98,13 +99,13 @@ class MediaWYSIWYGParagraphFixFilterTest extends MediaWYSIWYGTestHelper { $this->drupalPost('admin/config/content/formats/filtered_html', $edit, t('Save configuration')); $html = $this->drupalGet('node/' . $nid); - $count = preg_match_all($this->regexpMediaTag, $html); + $count = preg_match_all($this->regexpMediaTag, $html, $forphp53compat); $this->assertEqual($count, 3, t('Three media tags found, found @count.', array('@count' => $count))); - $count = preg_match_all($this->regexpPWrapped, $html); + $count = preg_match_all($this->regexpPWrapped, $html, $forphp53compat); $this->assertEqual($count, 0, t('No media tags with original wrapping HTML present, found @count.', array('@count' => $count))); - $count = preg_match_all($this->regexpReplaced, $html); + $count = preg_match_all($this->regexpReplaced, $html, $forphp53compat); $this->assertEqual($count, 0, t('No media tags with P replaced present, found @count.', array('@count' => $count))); // Enable the replace P fix filter option. @@ -114,13 +115,13 @@ class MediaWYSIWYGParagraphFixFilterTest extends MediaWYSIWYGTestHelper { $this->drupalPost('admin/config/content/formats/filtered_html', $edit, t('Save configuration')); $html = $this->drupalGet('node/' . $nid); - $count = preg_match_all($this->regexpMediaTag, $html); + $count = preg_match_all($this->regexpMediaTag, $html, $forphp53compat); $this->assertEqual($count, 3, t('Three media tags found, found @count.', array('@count' => $count))); - $count = preg_match_all($this->regexpPWrapped, $html); + $count = preg_match_all($this->regexpPWrapped, $html, $forphp53compat); $this->assertEqual($count, 0, t('No media tags with original wrapping HTML present, found @count.', array('@count' => $count))); - $count = preg_match_all($this->regexpReplaced, $html); + $count = preg_match_all($this->regexpReplaced, $html, $forphp53compat); $this->assertEqual($count, 3, t('Three media tags with P replaced present, found @count.', array('@count' => $count))); }