mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
26 lines
838 B
PHP
26 lines
838 B
PHP
<?php
|
|
|
|
namespace SilverStripe\UserForms\Tests\Model\EditableFormField;
|
|
|
|
use SilverStripe\Dev\SapphireTest;
|
|
use SilverStripe\UserForms\FormField\UserFormsCheckboxSetField;
|
|
use SilverStripe\UserForms\Model\EditableFormField\EditableCheckboxGroupField;
|
|
use SilverStripe\UserForms\Model\EditableFormField\EditableRadioField;
|
|
|
|
class EditableRadioFieldTest extends SapphireTest
|
|
{
|
|
protected static $fixture_file = '../EditableFormFieldTest.yml';
|
|
|
|
/**
|
|
* Tests that this element is rendered with a custom template
|
|
*/
|
|
public function testRenderedWithCustomTemplate()
|
|
{
|
|
$radio = $this->objFromFixture(EditableRadioField::class, 'radio-field');
|
|
$this->assertSame(
|
|
'SilverStripe\\UserForms\\FormField\\UserFormsOptionSetField',
|
|
$radio->getFormField()->getTemplate()
|
|
);
|
|
}
|
|
}
|