X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FContact%2FGroupAddTest.php;h=3eb09cb810f06e71165913518ca439dbbd40e586;hb=c24be2289c776d9ee74980d0db74996804bd0eff;hp=5ed83771bfc8f92f0626c8e7d872b895cf54d91d;hpb=d44a51e500618f1d9abfad4cc6de65cf20226c10;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Contact/GroupAddTest.php b/tests/phpunit/WebTest/Contact/GroupAddTest.php index 5ed83771bf..3eb09cb810 100644 --- a/tests/phpunit/WebTest/Contact/GroupAddTest.php +++ b/tests/phpunit/WebTest/Contact/GroupAddTest.php @@ -232,9 +232,9 @@ class WebTest_Contact_GroupAddTest extends CiviSeleniumTestCase { $this->waitForTextPresent("The role has been deleted."); } - /** - * Webtest for add contact to group (CRM-15108) - */ + /** + * Webtest for add contact to group (CRM-15108) + */ public function testAddContactToGroup() { $this->webtestLogin(); $this->openCiviPage("contact/add", "reset=1&ct=Individual"); @@ -242,7 +242,7 @@ class WebTest_Contact_GroupAddTest extends CiviSeleniumTestCase { //Create contact. $group = "Advisory Board"; - $firstName = "Adams".substr(sha1(rand()), 0, 4); + $firstName = "Adams" . substr(sha1(rand()), 0, 4); $lastName = substr(sha1(rand()), 0, 4); $email = "{$lastName}.{$firstName}@example.org"; $this->type('first_name', $firstName); @@ -273,7 +273,7 @@ class WebTest_Contact_GroupAddTest extends CiviSeleniumTestCase { $this->openCiviPage('contact/search', 'reset=1'); $this->waitForElementPresent("_qf_Basic_refresh"); $this->type('sort_name', $firstName); - $this->select('group',"Advisory Board"); + $this->select('group', "Advisory Board"); $this->click('_qf_Basic_refresh'); $this->waitForPageToLoad($this->getTimeoutMsec()); $this->assertTrue($this->isElementPresent("xpath=//table/tbody//tr/td[3]/a[text()='{$lastName}, {$firstName}']"));