Mass switch to openCiviPage method
[civicrm-core.git] / tests / phpunit / WebTest / Contact / TaskActionSendSMS.php
index e68a987e6005c436ce5fc9d8aae8bd64b7595174..de62e62bad1f1637020655977c8a661958bd0e6a 100644 (file)
@@ -48,8 +48,7 @@ class WebTest_Contact_TaskActionSendSMS extends CiviSeleniumTestCase {
     $this->waitForPageToLoad($this->getTimeoutMsec());
 
     // ADD contact1
-    $this->open($this->sboxPath . "civicrm/contact/add?reset=1&ct=Individual");
-    $this->waitForPageToLoad($this->getTimeoutMsec());
+    $this->openCiviPage("contact/add", "reset=1&ct=Individual");
     $firstName = substr(sha1(rand()), 0, 7);
     $this->type('first_name', $firstName);
 
@@ -73,8 +72,7 @@ class WebTest_Contact_TaskActionSendSMS extends CiviSeleniumTestCase {
     $this->assertElementContainsText('crm-notification-container', "Added to Group");
 
     // ADD contact2
-    $this->open($this->sboxPath . "civicrm/contact/add?reset=1&ct=Individual");
-    $this->waitForPageToLoad($this->getTimeoutMsec());
+    $this->openCiviPage("contact/add", "reset=1&ct=Individual");
     $firstName = substr(sha1(rand()), 0, 7);
     $this->type('first_name', $firstName);