| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class ElementAccordionTest extends SapphireTest |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected static $fixture_file = '../fixtures.yml'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * |
||
| 19 | */ |
||
| 20 | public function testGetCMSFields() |
||
| 21 | { |
||
| 22 | $object = $this->objFromFixture(ElementAccordion::class, 'one'); |
||
| 23 | $fields = $object->getCMSFields(); |
||
| 24 | $this->assertInstanceOf(FieldList::class, $fields); |
||
| 25 | $this->assertNotNull($fields->dataFieldByName('Panels')); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * |
||
| 30 | */ |
||
| 31 | public function testGetSummary() |
||
| 32 | { |
||
| 33 | $object = $this->objFromFixture(ElementAccordion::class, 'one'); |
||
| 34 | $this->assertEquals($object->getSummary(), '2 panels'); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * |
||
| 39 | */ |
||
| 40 | public function testGetType() |
||
| 44 | } |
||
| 45 | } |
||
| 46 |