File tree Expand file tree Collapse file tree 1 file changed +34
-2
lines changed
src/TwigComponent/tests/Unit Expand file tree Collapse file tree 1 file changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -450,7 +450,7 @@ public static function recipeProvider(): iterable
450
450
'font-semibold border rounded text-primary text-sm rounded-md ' ,
451
451
];
452
452
453
- yield 'boolean string variants true ' => [
453
+ yield 'boolean string variants true / true ' => [
454
454
[
455
455
'variants ' => [
456
456
'colors ' => [
@@ -466,7 +466,7 @@ public static function recipeProvider(): iterable
466
466
'text-primary disable ' ,
467
467
];
468
468
469
- yield 'boolean string variants false ' => [
469
+ yield 'boolean string variants true / false ' => [
470
470
[
471
471
'variants ' => [
472
472
'colors ' => [
@@ -482,6 +482,38 @@ public static function recipeProvider(): iterable
482
482
'text-primary ' ,
483
483
];
484
484
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
+
485
517
yield 'boolean string variants missing ' => [
486
518
[
487
519
'variants ' => [
You can’t perform that action at this time.
0 commit comments