From: kurund Date: Tue, 13 Aug 2013 19:30:42 +0000 (+0530) Subject: fixes for --filter=testRegisterWithPriceSet WebTest_Event_AddPricesetTest X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=70452444ba54884feddc747dfbc78679cc9492e3;p=civicrm-core.git fixes for --filter=testRegisterWithPriceSet WebTest_Event_AddPricesetTest --- diff --git a/tests/phpunit/WebTest/Event/AddPricesetTest.php b/tests/phpunit/WebTest/Event/AddPricesetTest.php index ad77c6e2f2..268bf10bbb 100644 --- a/tests/phpunit/WebTest/Event/AddPricesetTest.php +++ b/tests/phpunit/WebTest/Event/AddPricesetTest.php @@ -284,6 +284,9 @@ class WebTest_Event_AddPricesetTest extends CiviSeleniumTestCase { $this->type("xpath=//input[@class='form-text four required']", "1"); $this->click("xpath=//input[@class='form-radio']"); $this->click("xpath=//input[@class='form-checkbox']"); + $this->type("first_name", "Jane"); + $lastName = "Smith" . substr(sha1(rand()), 0, 7); + $this->type("last_name", $lastName); $this->type('email-Primary', $email); $this->waitForElementPresent('credit_card_type'); @@ -293,7 +296,7 @@ class WebTest_Event_AddPricesetTest extends CiviSeleniumTestCase { $this->select('credit_card_exp_date[M]', 'value=1'); $this->select('credit_card_exp_date[Y]', 'value=2020'); $this->type('billing_first_name', 'Jane'); - $this->type('billing_last_name', 'San'); + $this->type('billing_last_name', $lastName); $this->type('billing_street_address-5', '15 Main St.'); $this->type(' billing_city-5', 'San Jose'); $this->select('billing_country_id-5', 'value=1228');