Alter testEntityTagDeleteNoTagId(): should return a succes, all items should be remov...
authorWim De Craene <wim.de.craene@mediaraven.be>
Wed, 6 Jan 2016 17:47:17 +0000 (18:47 +0100)
committerWim De Craene <wim.de.craene@mediaraven.be>
Wed, 6 Jan 2016 17:47:17 +0000 (18:47 +0100)
tests/phpunit/api/v3/EntityTagTest.php

index 230e08abe81af7718430e72905e69cc1fcc0974f..b8396cb74b84a43d60597eccf6fb14ec2655f8c1 100644 (file)
@@ -196,9 +196,11 @@ class api_v3_EntityTagTest extends CiviUnitTestCase {
       'contact_id_h' => $this->_householdID,
     );
 
-    $result = $this->callAPIFailure('entity_tag', 'delete', $params,
-      'tag_id is a required field'
-    );
+    $result = $this->callAPISuccess('entity_tag', 'delete', $params);
+
+    $this->assertEquals($result['not_removed'], 0);
+    $this->assertEquals($result['removed'], 2);
+    $this->assertEquals($result['total_count'], 2);
   }
 
   public function testEntityTagDeleteINDHH() {