X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fapi%2Fv3%2FEventTest.php;h=d456681a178580412eefaa9c7401eb6f9f0a1b3f;hb=b94eea5170f9b25e817067941198129b5de3224c;hp=1abeb53befa1f9c24615ccf3f9e316bc021fd335;hpb=fe2ffc6ba435038bf07bab8e20a825f10346b89d;p=civicrm-core.git diff --git a/tests/phpunit/api/v3/EventTest.php b/tests/phpunit/api/v3/EventTest.php index 1abeb53bef..d456681a17 100644 --- a/tests/phpunit/api/v3/EventTest.php +++ b/tests/phpunit/api/v3/EventTest.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2017 | + | Copyright CiviCRM LLC (c) 2004-2018 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -773,7 +773,7 @@ class api_v3_EventTest extends CiviUnitTestCase { 'title' => 'le cake is a tie', 'check_permissions' => TRUE, ); - $config = &CRM_Core_Config::singleton(); + $config = CRM_Core_Config::singleton(); $config->userPermissionClass->permissions = array('access CiviCRM'); $result = $this->callAPIFailure('event', 'create', $params); $this->assertEquals('API permission check failed for Event/create call; insufficient permission: require access CiviCRM and access CiviEvent and edit all events', $result['error_message'], 'lacking permissions should not be enough to create an event');