Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class ResourceFieldTest extends SapphireTest |
||
10 | { |
||
11 | protected $usesDatabase = true; |
||
12 | |||
13 | public function testDisplayConditionsAreRenderedAsResultConditionsField() |
||
14 | { |
||
15 | $field = new ResourceField(); |
||
16 | $fields = $field->getCMSFields(); |
||
17 | |||
18 | $field = $fields->dataFieldByName('DisplayConditions'); |
||
19 | $this->assertNotNull($field, 'DisplayConditions field was not scaffolded'); |
||
20 | $this->assertInstanceOf( |
||
21 | ResultConditionsField::class, |
||
22 | $field, |
||
23 | 'DisplayConditions should be rendered as a ResultConditionsField' |
||
24 | ); |
||
25 | } |
||
26 | |||
27 | public function testTitleShouldBeFilterLabel() |
||
32 | } |
||
33 | } |
||
34 |