We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Component
1 parent a624447 commit 1de46dcCopy full SHA for 1de46dc
1 file changed
tests/Unit/Property/SelectorTest.php
@@ -383,6 +383,22 @@ public static function provideComponentsAndArrayRepresentation(): array
383
];
384
}
385
386
+ /**
387
+ * @test
388
+ *
389
+ * @param list<Component> $components
390
+ * @param list<array{class: string, value: string}> $expectedRepresenation
391
392
+ * @dataProvider provideComponentsAndArrayRepresentation
393
+ */
394
+ public function constructsWithComponentsProvided(array $components, array $expectedRepresenation): void
395
+ {
396
+ $subject = new Selector($components);
397
+
398
+ $representation = $subject->getArrayRepresentation()['components'];
399
+ self::assertSame($expectedRepresenation, $representation);
400
+ }
401
402
/**
403
* @test
404
*
0 commit comments