/** * Test CRM_Contact_Form_Search_Custom_Group::where( ) * With true argument it returns list of contact IDs */ public function testWhereTrue() { $formValues = array(CRM_Core_Form::CB_PREFIX . '17' => TRUE, CRM_Core_Form::CB_PREFIX . '23' => TRUE); $obj = new CRM_Contact_Form_Search_Custom_Group($formValues); $this->assertEquals(' (1) AND contact_a.id IN ( 17, 23 )', $obj->where(TRUE), 'In line ' . __LINE__); }