function SizeTest::testCommonFormatSize
Same name in other branches
- 8.9.x core/tests/Drupal/KernelTests/Core/Common/SizeTest.php \Drupal\KernelTests\Core\Common\SizeTest::testCommonFormatSize()
Checks that format_size() returns the expected string.
@dataProvider providerTestCommonFormatSize
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Common/ SizeTest.php, line 20
Class
- SizeTest
- Tests format_size().
Namespace
Drupal\KernelTests\Core\CommonCode
public function testCommonFormatSize($expected, $input) {
$size = format_size($input, NULL);
$this->assertEquals($expected, $size);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.