X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FContribute%2FContactContextAddTest.php;h=cd7458f501d8e7c6d626d30d8532a8d80f4a777c;hb=6f2500ee7589360102875df4367568fe87485df6;hp=3e310cf0bfccf54c139056f256a45981c98bc231;hpb=39de6fd54b9843705d13cb9f70fbcc6296103670;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Contribute/ContactContextAddTest.php b/tests/phpunit/WebTest/Contribute/ContactContextAddTest.php index 3e310cf0bf..cd7458f501 100644 --- a/tests/phpunit/WebTest/Contribute/ContactContextAddTest.php +++ b/tests/phpunit/WebTest/Contribute/ContactContextAddTest.php @@ -35,7 +35,7 @@ class WebTest_Contribute_ContactContextAddTest extends CiviSeleniumTestCase { parent::setUp(); } - function testContactContextAdd() { + public function testContactContextAdd() { // Log in using webtestLogin() method $this->webtestLogin(); @@ -49,8 +49,8 @@ class WebTest_Contribute_ContactContextAddTest extends CiviSeleniumTestCase { // We're using Quick Add block on the main page for this. $firstName = substr(sha1(rand()), 0, 7); // Add new Financial Account - $orgName = 'Alberta '.substr(sha1(rand()), 0, 7); - $financialAccountTitle = 'Financial Account '.substr(sha1(rand()), 0, 4); + $orgName = 'Alberta ' . substr(sha1(rand()), 0, 7); + $financialAccountTitle = 'Financial Account ' . substr(sha1(rand()), 0, 4); $financialAccountDescription = "{$financialAccountTitle} Description"; $accountingCode = 1033; $financialAccountType = 'Asset'; @@ -61,7 +61,7 @@ class WebTest_Contribute_ContactContextAddTest extends CiviSeleniumTestCase { $isDefault = FALSE; //Add new organisation - if($orgName) { + if ($orgName) { $this->webtestAddOrganization($orgName); } $this->_testAddFinancialAccount($financialAccountTitle, @@ -76,7 +76,7 @@ class WebTest_Contribute_ContactContextAddTest extends CiviSeleniumTestCase { $isDefault ); - $this->webtestAddContact($firstName, "Anderson", true); + $this->webtestAddContact($firstName, "Anderson", TRUE); // Get the contact id of the new contact $contactUrl = $this->parseURL(); @@ -128,7 +128,6 @@ class WebTest_Contribute_ContactContextAddTest extends CiviSeleniumTestCase { $this->type("invoice_id", time()); $this->webtestFillDate('thankyou_date'); - //Premium section $this->click("Premium"); $this->waitForElementPresent("fulfilled_date"); @@ -195,4 +194,3 @@ class WebTest_Contribute_ContactContextAddTest extends CiviSeleniumTestCase { } } } -