* <http://www.gnu.org/licenses/>.
*/
-/**
- * Include class definitions
- */
-require_once 'CiviTest/CiviUnitTestCase.php';
-
/**
* Test APIv3 civicrm_action_schedule functions
*
* @package CiviCRM_APIv3
* @subpackage API_ActionSchedule
+ * @group headless
*/
-
class api_v3_DashboardTest extends CiviUnitTestCase {
protected $_params;
protected $_params2;
protected $_apiversion = 3;
/**
- * Test setup for every test
+ * Test setup for every test.
*
- * 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
*/
public function setUp() {
// Connect to the database
$this->useTransaction(TRUE);
}
- function testDashboardCreate() {
+ public function testDashboardCreate() {
$oldCount = CRM_Core_DAO::singleValueQuery('select count(*) from civicrm_dashboard');
$params = array(
'version' => 3,
* @param int $id
* @param $oldCount
*/
- function DashboardDelete($id, $oldCount) {
+ public function DashboardDelete($id, $oldCount) {
$params = array(
'version' => 3,
'id' => $id,
$newCount = CRM_Core_DAO::singleValueQuery('select count(*) from civicrm_dashboard');
$this->assertEquals($oldCount, $newCount);
}
+
}