Security update for Core, with self-updated composer
[yaffs-website] / web / core / tests / Drupal / Tests / Component / Utility / BytesTest.php
index 35872ac4bbe6c44d97068a46336dc347e676ad83..72485ea8026be67719245c3f01edd081c9e43779 100644 (file)
@@ -3,7 +3,7 @@
 namespace Drupal\Tests\Component\Utility;
 
 use Drupal\Component\Utility\Bytes;
-use Drupal\Tests\UnitTestCase;
+use PHPUnit\Framework\TestCase;
 
 /**
  * Tests bytes size parsing helper methods.
@@ -12,7 +12,7 @@ use Drupal\Tests\UnitTestCase;
  *
  * @coversDefaultClass \Drupal\Component\Utility\Bytes
  */
-class BytesTest extends UnitTestCase {
+class BytesTest extends TestCase {
 
   /**
    * Tests \Drupal\Component\Utility\Bytes::toInt().
@@ -52,8 +52,10 @@ class BytesTest extends UnitTestCase {
       ['1 ZB'  , pow(Bytes::KILOBYTE, 7)],
       ['1 YB'  , pow(Bytes::KILOBYTE, 8)],
       ['23476892 bytes', 23476892],
-      ['76MRandomStringThatShouldBeIgnoredByParseSize.', 79691776], // 76 MB
-      ['76.24 Giggabyte', 81862076662], // 76.24 GB (with typo)
+      // 76 MB.
+      ['76MRandomStringThatShouldBeIgnoredByParseSize.', 79691776],
+      // 76.24 GB (with typo).
+      ['76.24 Giggabyte', 81862076662],
     ];
   }