| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class CWPCarouselItemExtensionTest extends SapphireTest |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Ensure that the caption is replaced by a HTML editor for content |
||
| 14 | */ |
||
| 15 | public function testCaptionIsReplacedByContent() |
||
| 16 | { |
||
| 17 | $carouselItem = new CarouselItem; |
||
| 18 | $fields = $carouselItem->getCMSFields(); |
||
| 19 | $this->assertInstanceOf(HtmlEditorField::class, $fields->fieldByName('Content')); |
||
| 20 | $this->assertNull($fields->fieldByName('Caption')); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Ensure that we have a primary and secondary call to action link/label |
||
| 25 | */ |
||
| 26 | public function testHasCallToActionFields() |
||
| 33 | } |
||
| 34 | } |
||
| 35 |