tests/EditableCheckboxGroupFieldTest.php 1 location
|
@@ 3-15 (lines=13) @@
|
| 1 |
|
<?php |
| 2 |
|
|
| 3 |
|
class EditableCheckboxGroupFieldTest extends SapphireTest |
| 4 |
|
{ |
| 5 |
|
protected static $fixture_file = 'EditableFormFieldTest.yml'; |
| 6 |
|
|
| 7 |
|
/** |
| 8 |
|
* Tests that this element is rendered with a custom template |
| 9 |
|
*/ |
| 10 |
|
public function testRenderedWithCustomTemplate() |
| 11 |
|
{ |
| 12 |
|
$checkboxGroup = $this->objFromFixture('EditableCheckboxGroupField', 'checkbox-group'); |
| 13 |
|
$this->assertEquals('UserFormsCheckboxSetField', $checkboxGroup->getFormField()->getTemplate()); |
| 14 |
|
} |
| 15 |
|
} |
| 16 |
|
|
tests/EditableRadioFieldTest.php 1 location
|
@@ 3-15 (lines=13) @@
|
| 1 |
|
<?php |
| 2 |
|
|
| 3 |
|
class EditableRadioFieldTest extends SapphireTest |
| 4 |
|
{ |
| 5 |
|
protected static $fixture_file = 'EditableFormFieldTest.yml'; |
| 6 |
|
|
| 7 |
|
/** |
| 8 |
|
* Tests that this element is rendered with a custom template |
| 9 |
|
*/ |
| 10 |
|
public function testRenderedWithCustomTemplate() |
| 11 |
|
{ |
| 12 |
|
$radio = $this->objFromFixture('EditableRadioField', 'radio-field'); |
| 13 |
|
$this->assertEquals('UserFormsOptionSetField', $radio->getFormField()->getTemplate()); |
| 14 |
|
} |
| 15 |
|
} |
| 16 |
|
|