From 3cdb86a60e305f9567b734d7a2b050effcf70e3a Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 9 Oct 2016 17:09:56 -0400 Subject: [PATCH] CRM-19448 - Test fixes --- tests/phpunit/api/v3/EntityTagACLTest.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/phpunit/api/v3/EntityTagACLTest.php b/tests/phpunit/api/v3/EntityTagACLTest.php index b35592612e..8fe3b976ed 100644 --- a/tests/phpunit/api/v3/EntityTagACLTest.php +++ b/tests/phpunit/api/v3/EntityTagACLTest.php @@ -151,16 +151,12 @@ class api_v3_EntityTagACLTest extends CiviUnitTestCase { public function testThatForEntityWithoutACLOrEditAllThereIsNoAccess($entity) { CRM_Core_Config::singleton()->userPermissionClass->permissions = array('access CiviCRM', 'view all contacts'); - $this->callAPISuccess('EntityTag', 'create', array( + $this->callAPIFailure('EntityTag', 'create', array( 'entity_id' => 1, 'tag_id' => $entity, 'check_permissions' => TRUE, 'entity_table' => $this->getTableForTag($entity), )); - $this->callAPISuccessGetCount('EntityTag', array( - 'entity_id' => 1, - 'entity_table' => $this->getTableForTag($entity), - ), 0); } /** @@ -203,7 +199,8 @@ class api_v3_EntityTagACLTest extends CiviUnitTestCase { CRM_Core_Config::singleton()->userPermissionClass->permissions = array('access CiviCRM', 'view all contacts'); $this->hookClass->setHook('civicrm_aclWhereClause', array($this, 'aclWhereHookAllResults')); - $this->callAPISuccess('EntityTag', 'create', array( + civicrm_api('EntityTag', 'create', array( + 'version' => 3, 'entity_id' => 1, 'tag_id' => $entity, 'entity_table' => $this->getTableForTag($entity), -- 2.25.1