mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
16 lines
484 B
PHP
16 lines
484 B
PHP
|
<?php
|
||
|
|
||
|
class EditableCheckboxGroupFieldTest extends SapphireTest
|
||
|
{
|
||
|
protected static $fixture_file = 'EditableFormFieldTest.yml';
|
||
|
|
||
|
/**
|
||
|
* Tests that this element is rendered with a custom template
|
||
|
*/
|
||
|
public function testRenderedWithCustomTemplate()
|
||
|
{
|
||
|
$checkboxGroup = $this->objFromFixture('EditableCheckboxGroupField', 'checkbox-group');
|
||
|
$this->assertEquals('UserFormsCheckboxSetField', $checkboxGroup->getFormField()->getTemplate());
|
||
|
}
|
||
|
}
|