diff --git a/core/tests/Drupal/KernelTests/Core/Common/SizeTest.php b/core/tests/Drupal/KernelTests/Core/Common/SizeTest.php index 333cf62552..5c8c2b28f5 100644 --- a/core/tests/Drupal/KernelTests/Core/Common/SizeTest.php +++ b/core/tests/Drupal/KernelTests/Core/Common/SizeTest.php @@ -64,8 +64,8 @@ public function testCommonFormatSize() { */ public function testCommonParseSizeFormatSize() { foreach ($this->exactTestCases as $size) { - $parsed_size = (int) Bytes::toInt($string = format_size($size, NULL)); - $this->assertSame($size, $parsed_size, $size . ' == ' . $parsed_size . ' (' . $string . ')'); + $parsed_size = Bytes::toInt($string = format_size($size, NULL)); + $this->assertEquals($size, $parsed_size, $size . ' == ' . $parsed_size . ' (' . $string . ')'); } }