From ccecc5d7ced10e6af51cea57f0bf3b9db4a049ca Mon Sep 17 00:00:00 2001 From: Thomas Hockaday Date: Sun, 30 Oct 2022 17:13:55 +0000 Subject: [PATCH] Add more assertions for Color rule test (#246) --- tests/Unit/RulesTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Unit/RulesTest.php b/tests/Unit/RulesTest.php index 8dfdb005..347d0858 100644 --- a/tests/Unit/RulesTest.php +++ b/tests/Unit/RulesTest.php @@ -14,7 +14,7 @@ class RulesTest extends TestCase public function testColorRule() { $validColors = ['#ffffff', '#000000', '#ff0000']; - $invalidColors = ['#fff', 'fff', 'ff0000', '#f000', '#hh0000']; + $invalidColors = ['#fff', 'fff', 'ff0000', '#f000', '#hh0000', 'not-a-color', '#FF0000', '#FF00000']; foreach ($validColors as $color) { $this->assertTrue($this->validateRule($color, new Color()));