Security update for Core, with self-updated composer
[yaffs-website] / web / core / tests / Drupal / KernelTests / Core / KeyValueStore / GarbageCollectionTest.php
index e0badd88d14b0a57f0e02df13cebde946171108d..ea76f0a4f5ecf12d43bb1d3b69d4fb7fb0ff4200 100644 (file)
@@ -39,7 +39,7 @@ class GarbageCollectionTest extends KernelTestBase {
     for ($i = 0; $i <= 3; $i++) {
       $store->setWithExpire('key_' . $i, $this->randomObject(), rand(500, 100000));
     }
-    $this->assertIdentical(sizeof($store->getAll()), 4, 'Four items were written to the storage.');
+    $this->assertIdentical(count($store->getAll()), 4, 'Four items were written to the storage.');
 
     // Manually expire the data.
     for ($i = 0; $i <= 3; $i++) {
@@ -54,7 +54,6 @@ class GarbageCollectionTest extends KernelTestBase {
         ->execute();
     }
 
-
     // Perform a new set operation and then trigger garbage collection.
     $store->setWithExpire('autumn', 'winter', rand(500, 1000000));
     system_cron();