X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FEvent%2FParticipantCountTest.php;h=121c5a0b9fe07a9a730ef87a56bac912300584a5;hb=63e91f559645ec20ff4bcce59ea8c5cad7ced61e;hp=edf51c51ade39a4aaf04742c0ec233c93f766131;hpb=ebda93be0f6455153d39b373426d997021401927;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Event/ParticipantCountTest.php b/tests/phpunit/WebTest/Event/ParticipantCountTest.php index edf51c51ad..121c5a0b9f 100644 --- a/tests/phpunit/WebTest/Event/ParticipantCountTest.php +++ b/tests/phpunit/WebTest/Event/ParticipantCountTest.php @@ -106,7 +106,7 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase { $this->waitForPageToLoad($this->getTimeoutMsec()); // verify number of registered participants - $this->assertStringsPresent(array('2 Result')); + $this->assertElementContainsText("xpath=//div[@id='search-status']/table/tbody/tr[1]/td", '2 Results'); } function testParticipantCountWithPriceset() { @@ -290,7 +290,7 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase { $this->waitForPageToLoad($this->getTimeoutMsec()); // verify number of participants records and total participant count - $this->assertStringsPresent(array('2 Result', 'Actual participant count : 24')); + $this->assertStringsPresent(array('2 Results', 'Actual participant count : 24')); // CRM-7953, check custom search Price Set Details for Event // Participants @@ -331,7 +331,7 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase { } /** - * @param $params + * @param array $params * * @return string */ @@ -437,7 +437,7 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase { } /** - * @param $eventParams + * @param array $eventParams * @param $participants * @param $priceFieldOptionCounts */ @@ -448,7 +448,7 @@ class WebTest_Event_ParticipantCountTest extends CiviSeleniumTestCase { $this->click('_qf_Custom_refresh-bottom'); $this->waitForPageToLoad($this->getTimeoutMsec()); - $tableHeaders = array('Contact ID', 'Participant Id', 'Name'); + $tableHeaders = array('Contact ID', 'Participant ID', 'Name'); $tableHeaders = array_merge($tableHeaders, array_keys(current($priceFieldOptionCounts))); $tdnum = 2;