fix header
[civicrm-core.git] / tests / phpunit / api / v3 / EventTest.php
index 1abeb53befa1f9c24615ccf3f9e316bc021fd335..d456681a178580412eefaa9c7401eb6f9f0a1b3f 100644 (file)
@@ -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');