CRM-13744 permissions allow 'or' permissions - prevents regression on event registrat...
[civicrm-core.git] / tests / phpunit / api / v3 / UtilsTest.php
index 8cbd5fa4488697844488e73be2dfc28f5ae5596c..d90566e1719df92bce037ad68885cac80b63b226 100644 (file)
@@ -91,7 +91,7 @@ class api_v3_UtilsTest extends CiviUnitTestCase {
     catch(Exception $e) {
       $message = $e->getMessage();
     }
-    $this->assertEquals($message, 'API permission check failed for contact/create call; missing permission: add contacts.', 'lacking permissions should throw an exception');
+    $this->assertEquals($message, 'API permission check failed for contact/create call; insufficient permission: require access CiviCRM and add contacts', 'lacking permissions should throw an exception');
 
     $config->userPermissionClass->permissions = array('access CiviCRM', 'add contacts', 'import contacts');
     $this->assertTrue(_civicrm_api3_api_check_permission('contact', 'create', $check), 'overfluous permissions should return true');