parent::setUp();
}
- function testSearchBuilderOptions() {
+ public function testSearchBuilderOptions() {
$this->webtestLogin();
$groupName = $this->WebtestAddGroup();
}
}
- function testSearchBuilderRLIKE() {
+ public function testSearchBuilderRLIKE() {
$this->webtestLogin();
// Adding contact
/**
* @param null $firstName
*/
- function createDetailContact($firstName = NULL) {
+ public function createDetailContact($firstName = NULL) {
if (!$firstName) {
$firstName = substr(sha1(rand()), 0, 7);
$this->assertTrue($this->isTextPresent("$firstName adv$firstName"));
}
- function testSearchBuilderContacts() {
+ public function testSearchBuilderContacts() {
$this->webtestLogin();
//Individual
* @param string $op
* @param null $count
*/
- function _searchBuilder($field, $fieldValue = NULL, $name = NULL, $op = '=', $count = NULL) {
+ public function _searchBuilder($field, $fieldValue = NULL, $name = NULL, $op = '=', $count = NULL) {
// search builder using contacts(not using contactType)
$this->openCiviPage("contact/search/builder", "reset=1");
$this->enterValues(1, 1, 'Contacts', $field, NULL, $op, "$fieldValue");
/**
* Enter form values in a Search Builder row
*/
- function enterValues($set, $row, $entity, $field, $loc, $op, $value = '') {
+ public function enterValues($set, $row, $entity, $field, $loc, $op, $value = '') {
if ($set > 1 && $row == 1) {
$this->click('addBlock');
}
* @param null $count
* @param $field
*/
- function _advancedSearch($fieldValue = NULL, $name = NULL, $contactType = NULL, $count = NULL, $field) {
+ public function _advancedSearch($fieldValue = NULL, $name = NULL, $contactType = NULL, $count = NULL, $field) {
//advanced search by selecting the contactType
$this->openCiviPage("contact/search/advanced", "reset=1");
if (isset($contactType)) {
* @param null $streetName
* @param null $postalCode
*/
- function _createContact($contactType, $name, $email, $streetName = NULL, $postalCode = NULL) {
+ public function _createContact($contactType, $name, $email, $streetName = NULL, $postalCode = NULL) {
$this->openCiviPage('contact/add', array('reset' => 1, 'ct' => $contactType), '_qf_Contact_cancel');
if ($contactType == 'Individual') {
* Webtest for CRM-12148
*
*/
- function testSearchBuilderfinancialType() {
+ public function testSearchBuilderfinancialType() {
$this->webtestLogin();
// add financial type
* Webtest for CRM-12588
*
*/
- function testSearchBuilderMembershipType() {
+ public function testSearchBuilderMembershipType() {
$this->webtestLogin();
// create first contact