X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FAdmin%2FCustomAddTestSameField.php;h=628d97ace6219ddbd71ef66e4a5a49bd31c06fd5;hb=d5a0bb241c55747b7bd8e16ede5addad323453e1;hp=ff7b420877bef26cd96761f21775c86b2a2b148c;hpb=68acd6ae8e764d8e713829675cfadfdefff770e8;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Admin/CustomAddTestSameField.php b/tests/phpunit/WebTest/Admin/CustomAddTestSameField.php index ff7b420877..628d97ace6 100644 --- a/tests/phpunit/WebTest/Admin/CustomAddTestSameField.php +++ b/tests/phpunit/WebTest/Admin/CustomAddTestSameField.php @@ -1,7 +1,7 @@ open($this->sboxPath); $this->webtestLogin(); @@ -44,7 +44,7 @@ class WebTest_Admin_CustomAddTestSameField extends CiviSeleniumTestCase { $this->_testCustomAdd(); } - function _testCustomAdd() { + public function _testCustomAdd() { //CRM-7564 : Different gropus can contain same custom fields $this->open($this->sboxPath . "civicrm/admin/custom/group?action=add&reset=1"); $this->waitForPageToLoad($this->getTimeoutMsec()); @@ -62,9 +62,9 @@ class WebTest_Admin_CustomAddTestSameField extends CiviSeleniumTestCase { //Is custom group created? $this->waitForText('crm-notification-container', "Your custom field set '$customGroupTitle' has been added. You can add custom fields now."); - + $gid = $this->urlArg('gid'); - + //add custom field - alphanumeric text $this->openCiviPage('admin/custom/group/field/add', "reset=1&action=add&gid=$gid"); $textFieldLabel = 'test_text_field'; @@ -167,4 +167,3 @@ class WebTest_Admin_CustomAddTestSameField extends CiviSeleniumTestCase { } } -