X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FImport%2FParticipantTest.php;h=3c722aaa0b8507a06e1a030b97ed2b1289a15af4;hb=b78a8038cd5f8631030ae902e194f5958f3b34f2;hp=d330e9ddeccaa1bf2fc39152d264658c7b79d839;hpb=c37119eae7269be8fec9dcc8a4d84c7be96d8e3f;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Import/ParticipantTest.php b/tests/phpunit/WebTest/Import/ParticipantTest.php index d330e9ddec..3c722aaa0b 100644 --- a/tests/phpunit/WebTest/Import/ParticipantTest.php +++ b/tests/phpunit/WebTest/Import/ParticipantTest.php @@ -1,9 +1,9 @@ _participantIndividualCSVData(); - + // Create and import csv from provided data and check imported data. $fieldMapper = array( 'mapper[0][0]' => 'email', @@ -322,13 +321,9 @@ class WebTest_Import_ParticipantTest extends ImportCiviSeleniumTestCase { // 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; }