CRM-13072 upgrade additional test classes including fixing activity.type.delete
[civicrm-core.git] / tests / phpunit / api / v3 / CRM11793Test.php
index f7f01be0db05fa7e2e7c7faa93fe62f2aa40a4d4..6dadeb887c5e6f6e457363151ddf3dc78475fefa 100644 (file)
@@ -60,16 +60,14 @@ class api_v3_CRM11793Test extends CiviUnitTestCase {
   }
 
   function _testCRM11793ContactType($contactType) {
-    $result = civicrm_api(
+    $result = $this->callAPISuccess(
       'contact',
       'get',
       array(
-        'version' => 3,
         'contact_type' => $contactType
       )
     );
 
-    $this->assertAPISuccess($result, "In line " . __LINE__);
     foreach ($result['values'] as $idx => $contact) {
       $this->assertEquals($contact['contact_type'], $contactType, "In line " . __LINE__);
     }