| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class EditableCountryDropdownFieldTest extends SapphireTest |
||
| 10 | { |
||
| 11 | public function testGetIcon() |
||
| 12 | { |
||
| 13 | $field = new EditableCountryDropdownField; |
||
| 14 | |||
| 15 | $this->assertContains('/images/editabledropdown.png', $field->getIcon()); |
||
| 16 | } |
||
| 17 | |||
| 18 | public function testAllowEmptyTitle() |
||
| 24 | } |
||
| 25 | |||
| 26 | public function testCMSFieldsContainsDefaultValue() |
||
| 27 | { |
||
| 28 | /** @var EditableCountryDropdownField $field */ |
||
| 29 | $field = EditableCountryDropdownField::create(); |
||
| 30 | $cmsFields = $field->getCMSFields(); |
||
| 31 | $defaultField = $cmsFields->dataFieldByName('Default'); |
||
| 32 | $this->assertNotNull($defaultField); |
||
| 33 | $this->assertInstanceOf(DropdownField::class, $defaultField); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function testDefaultValue() |
||
| 42 | } |
||
| 43 | } |
||
| 44 |