X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FImport%2FImportCiviSeleniumTestCase.php;h=f91dd87ff624f54be2534039ceb08c1ffb638206;hb=92915c5561d7ef4742bd6b46237760d6209141de;hp=477996eb2fba25f446e924a70f7ed921992bfe15;hpb=87d422669cee2e65706fe72821613ad846cd0adb;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Import/ImportCiviSeleniumTestCase.php b/tests/phpunit/WebTest/Import/ImportCiviSeleniumTestCase.php index 477996eb2f..f91dd87ff6 100644 --- a/tests/phpunit/WebTest/Import/ImportCiviSeleniumTestCase.php +++ b/tests/phpunit/WebTest/Import/ImportCiviSeleniumTestCase.php @@ -1,7 +1,7 @@ openCiviPage("import/contact", "reset=1", "uploadFile"); @@ -350,7 +362,7 @@ class ImportCiviSeleniumTestCase extends CiviSeleniumTestCase { $this->waitForPageToLoad($this->getTimeoutMsec()); // Check confirmation alert. - $this->assertTrue((bool)preg_match("/^Are you sure you want to Import now[\s\S]$/", $this->getConfirmation())); + $this->assertTrue((bool) preg_match("/^Are you sure you want to Import now[\s\S]$/", $this->getConfirmation())); $this->chooseOkOnNextConfirmation(); $this->waitForPageToLoad($this->getTimeoutMsec()); @@ -404,7 +416,10 @@ class ImportCiviSeleniumTestCase extends CiviSeleniumTestCase { } if (!empty($other['callbackImportSummary']) && is_callable(array( - $this, $other['callbackImportSummary']))) { + $this, + $other['callbackImportSummary'] + )) + ) { $callbackImportSummary = $other['callbackImportSummary']; $this->$callbackImportSummary($originalHeaders, $originalRows, $checkSummary); } @@ -417,9 +432,11 @@ class ImportCiviSeleniumTestCase extends CiviSeleniumTestCase { /** * Helper function to get the import url of the component. - * @param string $component component name + * @param string $component + * Component name. * - * @return string import url + * @return string + * import url */ private function _getImportComponentUrl($component) { $importComponentUrl = array( @@ -438,7 +455,7 @@ class ImportCiviSeleniumTestCase extends CiviSeleniumTestCase { * * @return string */ - function _getImportComponentContactType($component, $contactType) { + public function _getImportComponentContactType($component, $contactType) { $importComponentMode = array( 'Event' => array( 'Individual' => 'CIVICRM_QFID_1_8', @@ -468,7 +485,7 @@ class ImportCiviSeleniumTestCase extends CiviSeleniumTestCase { * @param array $checkMapperHeaders * @param string $headerSelector */ - function _checkImportMapperData($headers, $rows, $existingMapping = NULL, $checkMapperHeaders = array(), $headerSelector = 'th') { + public function _checkImportMapperData($headers, $rows, $existingMapping = NULL, $checkMapperHeaders = array(), $headerSelector = 'th') { if (empty($checkMapperHeaders)) { $checkMapperHeaders = array( @@ -507,9 +524,10 @@ class ImportCiviSeleniumTestCase extends CiviSeleniumTestCase { * @param array $rows * @param string $contactType * - * @return array $contactIds imported contact ids + * @return array + * imported contact ids */ - function _getImportedContactIds($rows, $contactType = 'Individual') { + public function _getImportedContactIds($rows, $contactType = 'Individual') { $contactIds = array(); foreach ($rows as $row) { @@ -553,7 +571,7 @@ class ImportCiviSeleniumTestCase extends CiviSeleniumTestCase { * @param array $headers * @param array $rows */ - function _formatContactCSVdata(&$headers, &$rows) { + public function _formatContactCSVdata(&$headers, &$rows) { if (!isset($headers['contact_relationships'])) { return; } @@ -578,4 +596,3 @@ class ImportCiviSeleniumTestCase extends CiviSeleniumTestCase { } } } -