Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function testFieldReturnsCompositeFieldTemplateOnReadonlyTransformation() |
||
32 | { |
||
33 | $this->assertSame( |
||
34 | TextCheckboxGroupField::class, |
||
35 | $this->field->getTemplates()[0], |
||
36 | 'Uses a custom template by default' |
||
37 | ); |
||
38 | |||
39 | $readonly = $this->field->performReadonlyTransformation(); |
||
40 | |||
41 | $this->assertSame( |
||
42 | CompositeField::class, |
||
43 | $readonly->getTemplate(), |
||
44 | 'Uses CompositeField template for readonly' |
||
45 | ); |
||
48 |