for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?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()
$result = 'A Slide Image';
$this->assertEquals($object->getSummary(), $result);
public function testGetType()
$this->assertEquals($object->getType(), 'Slideshow');