function ColorTest::testNormalizeHexLength
Same name in other branches
- 9 core/tests/Drupal/Tests/Component/Utility/ColorTest.php \Drupal\Tests\Component\Utility\ColorTest::testNormalizeHexLength()
- 8.9.x core/tests/Drupal/Tests/Component/Utility/ColorTest.php \Drupal\Tests\Component\Utility\ColorTest::testNormalizeHexLength()
- 11.x core/tests/Drupal/Tests/Component/Utility/ColorTest.php \Drupal\Tests\Component\Utility\ColorTest::testNormalizeHexLength()
Tests Color::normalizeHexLength().
@dataProvider providerTestNormalizeHexLength
Parameters
string $value: The input hex color value.
string $expected: The expected normalized hex color value.
File
-
core/
tests/ Drupal/ Tests/ Component/ Utility/ ColorTest.php, line 211
Class
- ColorTest
- Tests Color utility class conversions.
Namespace
Drupal\Tests\Component\UtilityCode
public function testNormalizeHexLength($value, $expected) : void {
$this->assertSame($expected, Color::normalizeHexLength($value));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.