for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class FormBlockTest extends SapphireTest
{
/**
* @var string
*/
protected static $fixture_file = 'dynamic-blocks/tests/Fixtures.yml';
*
public function testGetCMSFields()
$object = $this->objFromFixture('FormBlock', 'one');
$fields = $object->getCMSFields();
$this->assertInstanceOf('FieldList', $fields);
}