Skip to content

Commit dcd5ec3

Browse files
committed
Add tests (false/true false/false)
1 parent 17962b2 commit dcd5ec3

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

src/TwigComponent/tests/Unit/CVATest.php

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ public static function recipeProvider(): iterable
450450
'font-semibold border rounded text-primary text-sm rounded-md',
451451
];
452452

453-
yield 'boolean string variants true' => [
453+
yield 'boolean string variants true / true' => [
454454
[
455455
'variants' => [
456456
'colors' => [
@@ -466,7 +466,7 @@ public static function recipeProvider(): iterable
466466
'text-primary disable',
467467
];
468468

469-
yield 'boolean string variants false' => [
469+
yield 'boolean string variants true / false' => [
470470
[
471471
'variants' => [
472472
'colors' => [
@@ -482,6 +482,38 @@ public static function recipeProvider(): iterable
482482
'text-primary',
483483
];
484484

485+
yield 'boolean string variants false / true' => [
486+
[
487+
'variants' => [
488+
'colors' => [
489+
'primary' => 'text-primary',
490+
'secondary' => 'text-secondary',
491+
],
492+
'disabled' => [
493+
'false' => 'disable',
494+
],
495+
],
496+
],
497+
['colors' => 'primary', 'disabled' => true],
498+
'text-primary',
499+
];
500+
501+
yield 'boolean string variants false / false' => [
502+
[
503+
'variants' => [
504+
'colors' => [
505+
'primary' => 'text-primary',
506+
'secondary' => 'text-secondary',
507+
],
508+
'disabled' => [
509+
'false' => 'disable',
510+
],
511+
],
512+
],
513+
['colors' => 'primary', 'disabled' => false],
514+
'text-primary disable',
515+
];
516+
485517
yield 'boolean string variants missing' => [
486518
[
487519
'variants' => [

0 commit comments

Comments
 (0)