Merge pull request #15773 from civicrm/5.20
[civicrm-core.git] / tests / phpunit / CRM / Core / BAO / PrevNextCacheTest.php
index 39c491dc4086ec7068c6ddb881313ff835bc28ad..033991b9cbb2b2c665d1cc33d16e67882fcfd235 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2019                                |
+ | Copyright CiviCRM LLC (c) 2004-2020                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -35,31 +35,31 @@ class CRM_Core_BAO_PrevNextCacheTest extends CiviUnitTestCase {
     $dao = new CRM_Core_BAO_PrevNextCache();
     $dao->entity_id1 = 1;
     $dao->entity_id2 = 2;
-    $dao->data = serialize(array(
+    $dao->data = serialize([
       'srcID' => 1,
       'srcName' => 'Ms. Meliissa Mouse II',
       'dstID' => 2,
       'dstName' => 'Mr. Maurice Mouse II',
       'weight' => 20,
       'canMerge' => TRUE,
-    ));
+    ]);
     $dao->save();
     $dao = new CRM_Core_BAO_PrevNextCache();
     $dao->id = 1;
-    CRM_Core_BAO_PrevNextCache::flipPair(array(1), 0);
+    CRM_Core_BAO_PrevNextCache::flipPair([1], 0);
     $dao->find(TRUE);
     $this->assertEquals(1, $dao->entity_id1);
     $this->assertEquals(2, $dao->entity_id2);
-    $this->assertEquals(serialize(array(
+    $this->assertEquals(serialize([
       'srcName' => 'Mr. Maurice Mouse II',
       'dstID' => 1,
       'dstName' => 'Ms. Meliissa Mouse II',
       'weight' => 20,
       'canMerge' => TRUE,
       'srcID' => 2,
-    )), $dao->data);
+    ]), $dao->data);
 
-    $this->quickCleanup(array('civicrm_prevnext_cache'));
+    $this->quickCleanup(['civicrm_prevnext_cache']);
   }
 
   public function testSetItem() {