X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fapi%2Fv3%2FDashboardContactTest.php;h=6f95516ff22fc97f04879b78d1629be4a77ed142;hb=15b3f8620f689a2eab5cf3c462aa9b286af04582;hp=15cfc18e5f2f509a24ed7bdde142fdb2ddac3a49;hpb=709e574bfc8b047d9e9f9a6ad84595bc3f560b54;p=civicrm-core.git diff --git a/tests/phpunit/api/v3/DashboardContactTest.php b/tests/phpunit/api/v3/DashboardContactTest.php index 15cfc18e5f..6f95516ff2 100644 --- a/tests/phpunit/api/v3/DashboardContactTest.php +++ b/tests/phpunit/api/v3/DashboardContactTest.php @@ -19,16 +19,12 @@ * . */ -/** - * 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_DashboardContactTest extends CiviUnitTestCase { protected $_params; @@ -37,10 +33,10 @@ class api_v3_DashboardContactTest 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 @@ -53,8 +49,8 @@ class api_v3_DashboardContactTest extends CiviUnitTestCase { '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(