X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FContact%2FSearchbyDateFilterTest.php;h=0f58868dc2702c73f6713e2c0f776653ab246a62;hb=e44431fee3e48e503e8500ace6206f2d25c8956f;hp=54530b9eaae886d70236310a963fe7cf9796b2c4;hpb=9c7ec7086d8984dcc3dc11f643bfa0f4b3c6eeda;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Contact/SearchbyDateFilterTest.php b/tests/phpunit/WebTest/Contact/SearchbyDateFilterTest.php index 54530b9eaa..0f58868dc2 100644 --- a/tests/phpunit/WebTest/Contact/SearchbyDateFilterTest.php +++ b/tests/phpunit/WebTest/Contact/SearchbyDateFilterTest.php @@ -25,6 +25,10 @@ */ require_once 'CiviTest/CiviSeleniumTestCase.php'; + +/** + * Class WebTest_Contact_SearchbyDateFilterTest + */ class WebTest_Contact_SearchbyDateFilterTest extends CiviSeleniumTestCase { protected function setUp() { @@ -32,7 +36,7 @@ class WebTest_Contact_SearchbyDateFilterTest extends CiviSeleniumTestCase { } /* - * Function to test individual pane seperatly. + * test individual pane seperatly. */ function testAdvancedSearch() { $this->webtestLogin(); @@ -149,9 +153,12 @@ class WebTest_Contact_SearchbyDateFilterTest extends CiviSeleniumTestCase { $this->waitForPageToLoad(2 * $this->getTimeoutMsec()); } + /** + * @param array $openedPanes + */ function _checkOpenedPanes($openedPanes = array( )) { - if (!$this->isTextPresent('No matches found')) { + if (!$this->isTextPresent('None found.')) { $this->click('css=div.crm-advanced_search_form-accordion div.crm-accordion-header'); } @@ -168,6 +175,10 @@ class WebTest_Contact_SearchbyDateFilterTest extends CiviSeleniumTestCase { } } + /** + * @param $paneRef + * @param array $selectFields + */ function _selectPaneFields($paneRef, $selectFields = array( )) { $pane = $this->_advanceSearchPanesDateFilter($paneRef); @@ -214,6 +225,11 @@ class WebTest_Contact_SearchbyDateFilterTest extends CiviSeleniumTestCase { } } + /** + * @param null $paneRef + * + * @return array + */ function _advanceSearchPanesDateFilter($paneRef = NULL) { static $_advance_search_panes;