<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
*/
-
require_once 'WebTest/Import/ImportCiviSeleniumTestCase.php';
class WebTest_Import_ParticipantTest extends ImportCiviSeleniumTestCase {
// Get sample import data.
list($headers, $rows) = $this->_participantIndividualCSVData();
-
+
// Create and import csv from provided data and check imported data.
$fieldMapper = array(
'mapper[0][0]' => 'email',
// verify event input on info page
// start at Manage Events listing
$this->openCiviPage('event/manage', 'reset=1');
- $this->click("link=" . $params['title']);
-
- $this->waitForPageToLoad($this->getTimeoutMsec());
+ $this->clickLink("link=" . $params['title'], NULL);
- $matches = array();
- preg_match('/id=([0-9]+)/', $this->getLocation(), $matches);
- $params['event_id'] = $matches[1];
+ $params['event_id'] = $this->urlArg('id');;
return $params;
}