<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
*/
require_once 'CiviTest/CiviSeleniumTestCase.php';
+
+/**
+ * Class WebTest_Contact_SearchbyDateFilterTest
+ */
class WebTest_Contact_SearchbyDateFilterTest extends CiviSeleniumTestCase {
protected function setUp() {
}
/*
- * Function to test individual pane seperatly.
+ * test individual pane seperatly.
*/
- function testAdvancedSearch() {
+ public function testAdvancedSearch() {
$this->webtestLogin();
// Get all default advance search panes.
}
- function testIndividualSearchPage(){
+ public function testIndividualSearchPage(){
$this->webtestLogin();
$this->openCiviPage("contribute/search", "reset=1");
$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');
}
}
}
+ /**
+ * @param $paneRef
+ * @param array $selectFields
+ */
function _selectPaneFields($paneRef, $selectFields = array(
)) {
$pane = $this->_advanceSearchPanesDateFilter($paneRef);
}
}
- function _advanceSearchPanesDateFilter($paneRef = NULL) {
+ /**
+ * @param null $paneRef
+ *
+ * @return array
+ */
+ public function _advanceSearchPanesDateFilter($paneRef = NULL) {
static $_advance_search_panes;
if (!isset($_advance_search_panes) || empty($_advance_search_panes)) {
array(
'type' => 'select',
'locator' => 'contribution_date_relative',
- 'values' => array('This Day'),
+ 'values' => array('Today'),
),
),
),
return $_advance_search_panes;
}
}
-