remove version param as unneded as callAPISucess doesn't need it
authorSeamus Lee <seamuslee001@gmail.com>
Thu, 11 Aug 2016 04:58:57 +0000 (14:58 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 11 Aug 2016 04:58:57 +0000 (14:58 +1000)
tests/phpunit/api/v3/DashboardTest.php

index 13f41fcbd2c0e169d332c7eb4ed666faa6135a1c..700d4d807bed98bc46a3e82ce56b0942daf5462a 100644 (file)
@@ -47,7 +47,6 @@ class api_v3_DashboardTest extends CiviUnitTestCase {
   public function testDashboardCreate() {
     $oldCount = CRM_Core_DAO::singleValueQuery('select count(*) from civicrm_dashboard');
     $params = array(
-      'version' => 3,
       'label' => 'New Dashlet element',
       'name' => 'New Dashlet element',
       'url' => 'civicrm/report/list&reset=1&compid=99&snippet=5',
@@ -64,11 +63,11 @@ class api_v3_DashboardTest extends CiviUnitTestCase {
 
   /**
    * CRM-19217.
+   *
    * Ensure that where is_active is specifically set to 0 is_active returns 0.
    */
   public function testDashboardCreateNotActive() {
     $params = array(
-      'version' => 3,
       'label' => 'New Dashlet element',
       'name' => 'New Dashlet element',
       'url' => 'civicrm/report/list&reset=1&compid=99&snippet=5',
@@ -85,7 +84,6 @@ class api_v3_DashboardTest extends CiviUnitTestCase {
    */
   public function DashboardDelete($id, $oldCount) {
     $params = array(
-      'version' => 3,
       'id' => $id,
     );
     $dashboardget = $this->callAPISuccess('dashboard', 'get', $params);