Source of file ElementSlideshowTest.php
Size: 1,067 Bytes - Last Modified: 2021-12-24T06:45:56+00:00
/var/www/docs.ssmods.com/process/src/tests/Elements/ElementSlideshowTest.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445 | <?php namespace Dynamic\Elements\Flexslider\Test\Elements; use Dynamic\Elements\Flexslider\Elements\ElementSlideshow; use SilverStripe\Core\Injector\Injector; use SilverStripe\Dev\SapphireTest; use SilverStripe\Forms\FieldList; class ElementSlideshowTest extends SapphireTest { /** * @var string */ protected static $fixture_file = '../fixtures.yml'; /** * Tests getCMSFields(). */ public function testGetCMSFields() { $object = $this->objFromFixture(ElementSlideshow::class, 'one'); $this->assertInstanceOf(FieldList::class, $object->getCMSFields()); } /** * */ public function testGetSummary() { $object = $this->objFromFixture(ElementSlideshow::class, 'one'); $result = 'A Slide Image'; $this->assertEquals($object->getSummary(), $result); } /** * */ public function testGetType() { $object = $this->objFromFixture(ElementSlideshow::class, 'one'); $this->assertEquals($object->getType(), 'Slideshow'); } } |