projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #9072 from jeromelebleu/patch-19386
[civicrm-core.git]
/
tests
/
phpunit
/
WebTest
/
Contribute
/
ContactContextAddTest.php
diff --git
a/tests/phpunit/WebTest/Contribute/ContactContextAddTest.php
b/tests/phpunit/WebTest/Contribute/ContactContextAddTest.php
index 6a935a96ea4f622944a4812a3ca7e4068f77fe87..8f546482319937f34931dd4ca89d912cc0596efb 100644
(file)
--- a/
tests/phpunit/WebTest/Contribute/ContactContextAddTest.php
+++ b/
tests/phpunit/WebTest/Contribute/ContactContextAddTest.php
@@
-3,7
+3,7
@@
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
6
|
+ | Copyright CiviCRM LLC (c) 2004-201
7
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-159,9
+159,7
@@
class WebTest_Contribute_ContactContextAddTest extends CiviSeleniumTestCase {
'Check Number' => 'check #1041',
);
foreach ($verifyData as $label => $value) {
'Check Number' => 'check #1041',
);
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);
}
// check values of contribution record in the DB
}
// check values of contribution record in the DB
@@
-189,7
+187,7
@@
class WebTest_Contribute_ContactContextAddTest extends CiviSeleniumTestCase {
1 => "{$firstName} Anderson",
);
foreach ($expected as $value => $label) {
1 => "{$firstName} Anderson",
);
foreach ($expected as $value => $label) {
- $this->
verifyText("xpath=id('Search')/div[2]/table[2]/tbody//tr/td[$value]", preg_quote($label)
);
+ $this->
assertElementContainsText("xpath=id('Search')/div[2]/table[2]/tbody//tr/td[$value]", $label
);
}
}
}
}