X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FPledge%2FStandaloneAddDeleteTest.php;h=0fc7f3a3cc632e6f60a0edf85bf5448889ea9202;hb=80f3b91d38485d41399ab6fab7fa9c08bb6a701e;hp=dd16d80a39a16e4e469ca9271f9bc5fa77dff98c;hpb=7484f6b5f3ec67a0a6a64fe8c4b8d37c872583a9;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Pledge/StandaloneAddDeleteTest.php b/tests/phpunit/WebTest/Pledge/StandaloneAddDeleteTest.php index dd16d80a39..0fc7f3a3cc 100644 --- a/tests/phpunit/WebTest/Pledge/StandaloneAddDeleteTest.php +++ b/tests/phpunit/WebTest/Pledge/StandaloneAddDeleteTest.php @@ -41,9 +41,7 @@ class WebTest_Pledge_StandaloneAddDeleteTest extends CiviSeleniumTestCase { $this->openCiviPage('pledge/add', 'reset=1&context=standalone', '_qf_Pledge_upload'); // create new contact using dialog - $firstName = 'Ma' . substr(sha1(rand()), 0, 4); - $lastName = 'Za' . substr(sha1(rand()), 0, 7); - $this->webtestNewDialogContact($firstName, $lastName, $firstName . '@example.com'); + $contact = $this->createDialogContact(); $this->type('amount', '2400'); $this->type('installments', '10'); @@ -65,7 +63,7 @@ class WebTest_Pledge_StandaloneAddDeleteTest extends CiviSeleniumTestCase { $pledgeDate = date('F jS, Y', strtotime('now')); $this->webtestVerifyTabularData(array( - 'Pledge By' => $firstName . ' ' . $lastName, + 'Pledge By' => $contact['display_name'], 'Total Pledge Amount' => '$ 2,400.00', 'To be paid in' => '10 installments of $ 240.00 every 1 month(s)', 'Payments are due on the' => '2 day of the period',