Skip to content

Commit

Permalink
Add more assertions for Color rule test (Azuriom#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashockaday authored Oct 30, 2022
1 parent 49e5cb9 commit ccecc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Unit/RulesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit ccecc5d

Please sign in to comment.