Merge branch 'loading-components-in-disabled-extension-issue' of https://github.com...
[civicrm-core.git] / tests / phpunit / WebTest / Contribute / OfflineRecurContributionTest.php
index ad35777aaf6506fcb4e35db18ee142fef184c2b9..f431101271183d5b669876aaa2fc750c859f868f 100644 (file)
@@ -104,9 +104,7 @@ class WebTest_Contribute_OfflineRecurContributionTest extends CiviSeleniumTestCa
     );
 
     foreach ($verifyData as $label => $value) {
-      $this->verifyText("xpath=//form[@id='ContributionView']//table/tbody/tr/td[text()='{$label}']/following-sibling::td",
-        preg_quote($value)
-      );
+      $this->assertElementContainsText("xpath=//form[@id='ContributionView']//table/tbody/tr/td[text()='{$label}']/following-sibling::td", $value);
     }
   }