Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | class ElementalAreaFieldTest extends SapphireTest |
||
13 | { |
||
14 | protected static $fixture_file = '../ElementalAreaTest.yml'; |
||
15 | |||
16 | protected static $extra_dataobjects = [ |
||
17 | TestElement::class, |
||
18 | TestPage::class, |
||
19 | ]; |
||
20 | |||
21 | /** |
||
22 | * @var ElementalAreaField |
||
23 | */ |
||
24 | protected $field; |
||
25 | |||
26 | protected function setUp() |
||
27 | { |
||
28 | parent::setUp(); |
||
29 | |||
30 | $this->field = new ElementalAreaField( |
||
31 | 'ElementalAreaField', |
||
32 | new ElementalArea([ |
||
33 | TestElement::create(), |
||
34 | ]), |
||
35 | [TestElement::class => TestElement::create()->getType()] |
||
36 | ); |
||
37 | } |
||
38 | |||
39 | public function testFieldReturnsCompositeFieldOnReadonlyTransformation() |
||
47 | ); |
||
48 | } |
||
50 |