Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function testRenderSettings(): void |
||
23 | { |
||
24 | $filter = new EmptyFieldFilter(); |
||
25 | $filter->initialize('field_name', [ |
||
26 | 'field_options' => ['class' => 'FooBar'], |
||
27 | ]); |
||
28 | $options = $filter->getRenderSettings()[1]; |
||
29 | |||
30 | $this->assertSame(ChoiceType::class, $options['field_type']); |
||
31 | $this->assertSame([ |
||
32 | 'label_type_empty' => EmptyFieldFilter::TYPE_EMPTY, |
||
33 | 'label_type_not_empty' => EmptyFieldFilter::TYPE_NOT_EMPTY, |
||
34 | ], $options['field_options']['choices']); |
||
35 | } |
||
36 | } |
||
37 |