mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Make sure test classes don't duplicate common class names
This commit is contained in:
parent
007348df61
commit
8f92d75975
@ -9,8 +9,8 @@ class EditableFormFieldTest extends FunctionalTest {
|
|||||||
static $fixture_file = 'userforms/tests/EditableFormFieldTest.yml';
|
static $fixture_file = 'userforms/tests/EditableFormFieldTest.yml';
|
||||||
|
|
||||||
protected $extraDataObjects = array(
|
protected $extraDataObjects = array(
|
||||||
'ExtendedEditableFormField',
|
'ExtendedEditableFormFieldTestOnly',
|
||||||
'EditableFormFieldExtension'
|
'EditableFormFieldExtensionTestOnly'
|
||||||
);
|
);
|
||||||
|
|
||||||
function testFormFieldPermissions() {
|
function testFormFieldPermissions() {
|
||||||
@ -309,7 +309,7 @@ class EditableFormFieldTest extends FunctionalTest {
|
|||||||
|
|
||||||
function testExtendedEditableFormField() {
|
function testExtendedEditableFormField() {
|
||||||
/** @var ExtendedEditableFormField $field */
|
/** @var ExtendedEditableFormField $field */
|
||||||
$field = $this->objFromFixture('ExtendedEditableFormField', 'extended-field');
|
$field = $this->objFromFixture('ExtendedEditableFormFieldTestOnly', 'extended-field');
|
||||||
|
|
||||||
// Check db fields
|
// Check db fields
|
||||||
$dbFields = $field->stat('db');
|
$dbFields = $field->stat('db');
|
||||||
@ -342,10 +342,10 @@ class EditableFormFieldTest extends FunctionalTest {
|
|||||||
* A base EditableFormFieldClass that will be extended with {@link EditableFormFieldExtension}
|
* A base EditableFormFieldClass that will be extended with {@link EditableFormFieldExtension}
|
||||||
* @mixin EditableFormFieldExtension
|
* @mixin EditableFormFieldExtension
|
||||||
*/
|
*/
|
||||||
class ExtendedEditableFormField extends EditableFormField implements TestOnly
|
class ExtendedEditableFormFieldTestOnly extends EditableFormField implements TestOnly
|
||||||
{
|
{
|
||||||
private static $extensions = array(
|
private static $extensions = array(
|
||||||
'EditableFormFieldExtension'
|
'EditableFormFieldExtensionTestOnly'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -354,7 +354,7 @@ class ExtendedEditableFormField extends EditableFormField implements TestOnly
|
|||||||
* Used for testing extensions to EditableFormField and the extended Fields methods
|
* Used for testing extensions to EditableFormField and the extended Fields methods
|
||||||
* @property EditableFormField owner
|
* @property EditableFormField owner
|
||||||
*/
|
*/
|
||||||
class EditableFormFieldExtension extends DataExtension implements TestOnly
|
class EditableFormFieldExtensionTestOnly extends DataExtension implements TestOnly
|
||||||
{
|
{
|
||||||
private static $db = array(
|
private static $db = array(
|
||||||
'TestExtraField' => 'Varchar',
|
'TestExtraField' => 'Varchar',
|
||||||
|
@ -108,15 +108,13 @@ EditableFileField:
|
|||||||
Name: file-uploader
|
Name: file-uploader
|
||||||
Title: Set file
|
Title: Set file
|
||||||
|
|
||||||
|
ExtendedEditableFormFieldTestOnly:
|
||||||
ExtendedEditableFormField:
|
|
||||||
extended-field:
|
extended-field:
|
||||||
Name: extended-field
|
Name: extended-field
|
||||||
Title: Extended Field
|
Title: Extended Field
|
||||||
TestExtraField: Extra Field
|
TestExtraField: Extra Field
|
||||||
TestValidationField: Extra Validation Field
|
TestValidationField: Extra Validation Field
|
||||||
|
|
||||||
|
|
||||||
UserDefinedForm:
|
UserDefinedForm:
|
||||||
basic-form-page:
|
basic-form-page:
|
||||||
Title: User Defined Form
|
Title: User Defined Form
|
||||||
|
Loading…
Reference in New Issue
Block a user