Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class DropdownTest extends SapphireTest |
||
10 | { |
||
11 | protected $usesDatabase = true; |
||
12 | |||
13 | public function testGetCMSFields() |
||
14 | { |
||
15 | $field = new Dropdown(); |
||
16 | $fields = $field->getCMSFields(); |
||
17 | |||
18 | $this->assertInstanceOf( |
||
19 | TextField::class, |
||
20 | $fields->dataFieldByName('Options'), |
||
21 | 'Options field should exist' |
||
22 | ); |
||
23 | } |
||
24 | |||
25 | public function testGetType() |
||
29 | } |
||
30 | } |
||
31 |