- * Connect to the database, truncate the tables that will be used
- * and redirect stdin to a temporary file
+ * Connect to the database, truncate the tables that will be used
+ * and redirect stdin to a temporary file
'version' => 3,
'label' => 'New Dashlet element',
'name' => 'New Dashlet element',
'version' => 3,
'label' => 'New Dashlet element',
'name' => 'New Dashlet element',
- 'url' => 'civicrm/report/list&compid=99&reset=1&snippet=5',
- 'fullscreen_url' => 'civicrm/report/list&compid=99&reset=1&snippet=5&context=dashletFullscreen',
+ 'url' => 'civicrm/report/list&compid=99&reset=1',
+ 'fullscreen_url' => 'civicrm/report/list&compid=99&reset=1&context=dashletFullscreen',
);
$dashresult = $this->callAPISuccess('dashboard', 'create', $dashParams);
$contact = $this->callAPISuccess('contact', 'create', array(
);
$dashresult = $this->callAPISuccess('dashboard', 'create', $dashParams);
$contact = $this->callAPISuccess('contact', 'create', array(
$newCount = CRM_Core_DAO::singleValueQuery("select count(*) from civicrm_dashboard_contact where contact_id = {$contact['id']} AND is_active = 1 AND dashboard_id = {$dashresult['id']}");
$this->assertEquals($oldCount + 1, $newCount);
}
$newCount = CRM_Core_DAO::singleValueQuery("select count(*) from civicrm_dashboard_contact where contact_id = {$contact['id']} AND is_active = 1 AND dashboard_id = {$dashresult['id']}");
$this->assertEquals($oldCount + 1, $newCount);
}