X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fapi%2Fv3%2FDashboardTest.php;h=183a5584af065de03171a863b8338045a3b4c40c;hb=0722cb9f94d229f2857096fc277de1b9b1be6b7c;hp=3e031d96fdf58acc6552af29145f2d85d76943b8;hpb=4fd26f71c62960fbbb738a549bb595926f1eb70b;p=civicrm-core.git diff --git a/tests/phpunit/api/v3/DashboardTest.php b/tests/phpunit/api/v3/DashboardTest.php index 3e031d96fd..183a5584af 100644 --- a/tests/phpunit/api/v3/DashboardTest.php +++ b/tests/phpunit/api/v3/DashboardTest.php @@ -19,18 +19,13 @@ * . */ -/** - * 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; @@ -38,10 +33,10 @@ class api_v3_DashboardTest extends CiviUnitTestCase { 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 @@ -49,7 +44,7 @@ class api_v3_DashboardTest extends CiviUnitTestCase { $this->useTransaction(TRUE); } - function testDashboardCreate() { + public function testDashboardCreate() { $oldCount = CRM_Core_DAO::singleValueQuery('select count(*) from civicrm_dashboard'); $params = array( 'version' => 3, @@ -70,7 +65,7 @@ class api_v3_DashboardTest extends CiviUnitTestCase { * @param int $id * @param $oldCount */ - function DashboardDelete($id, $oldCount) { + public function DashboardDelete($id, $oldCount) { $params = array( 'version' => 3, 'id' => $id, @@ -81,4 +76,5 @@ class api_v3_DashboardTest extends CiviUnitTestCase { $newCount = CRM_Core_DAO::singleValueQuery('select count(*) from civicrm_dashboard'); $this->assertEquals($oldCount, $newCount); } + }