From c3a18b648798cb28f0b85f444480bb729a3f398e Mon Sep 17 00:00:00 2001 From: Wim De Craene Date: Wed, 6 Jan 2016 18:47:17 +0100 Subject: [PATCH] Alter testEntityTagDeleteNoTagId(): should return a succes, all items should be removed and no items should be 'not removed'. --- tests/phpunit/api/v3/EntityTagTest.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/api/v3/EntityTagTest.php b/tests/phpunit/api/v3/EntityTagTest.php index 230e08abe8..b8396cb74b 100644 --- a/tests/phpunit/api/v3/EntityTagTest.php +++ b/tests/phpunit/api/v3/EntityTagTest.php @@ -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() { -- 2.25.1