projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'upstream/4.5' into 4.5-master-2014-12-22-22-01-44
[civicrm-core.git]
/
tests
/
phpunit
/
WebTest
/
Contact
/
SearchbyDateFilterTest.php
diff --git
a/tests/phpunit/WebTest/Contact/SearchbyDateFilterTest.php
b/tests/phpunit/WebTest/Contact/SearchbyDateFilterTest.php
index 54530b9eaae886d70236310a963fe7cf9796b2c4..0f58868dc2702c73f6713e2c0f776653ab246a62 100644
(file)
--- a/
tests/phpunit/WebTest/Contact/SearchbyDateFilterTest.php
+++ b/
tests/phpunit/WebTest/Contact/SearchbyDateFilterTest.php
@@
-25,6
+25,10
@@
*/
require_once 'CiviTest/CiviSeleniumTestCase.php';
*/
require_once 'CiviTest/CiviSeleniumTestCase.php';
+
+/**
+ * Class WebTest_Contact_SearchbyDateFilterTest
+ */
class WebTest_Contact_SearchbyDateFilterTest extends CiviSeleniumTestCase {
protected function setUp() {
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();
*/
function testAdvancedSearch() {
$this->webtestLogin();
@@
-149,9
+153,12
@@
class WebTest_Contact_SearchbyDateFilterTest extends CiviSeleniumTestCase {
$this->waitForPageToLoad(2 * $this->getTimeoutMsec());
}
$this->waitForPageToLoad(2 * $this->getTimeoutMsec());
}
+ /**
+ * @param array $openedPanes
+ */
function _checkOpenedPanes($openedPanes = array(
)) {
function _checkOpenedPanes($openedPanes = array(
)) {
- if (!$this->isTextPresent('No
matches found
')) {
+ if (!$this->isTextPresent('No
ne found.
')) {
$this->click('css=div.crm-advanced_search_form-accordion div.crm-accordion-header');
}
$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);
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;
function _advanceSearchPanesDateFilter($paneRef = NULL) {
static $_advance_search_panes;