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