6 class CRM_Contact_Page_AjaxTest
extends CiviUnitTestCase
{
9 public function setUp() {
10 $this->useTransaction(TRUE);
15 * Minimal test on the testGetDupes function to make sure it completes without error.
17 public function testGetDedupes() {
19 $_REQUEST['rgid'] = 1;
20 $_REQUEST['columns'] = array(
24 'src' => 'first_name',
30 $_REQUEST['is_unit_test'] = TRUE;
31 $result = CRM_Contact_Page_AJAX
::getDedupes();
32 $this->assertEquals(array('data' => array(), 'recordsTotal' => 0, 'recordsFiltered' => 0), $result);