mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-09-08 18:51:23 +02:00
18 lines
492 B
PHP
18 lines
492 B
PHP
<?php
|
|
|
|
namespace SilverStripe\UserForms\Tests\Model\EditableFormField;
|
|
|
|
use SilverStripe\Dev\SapphireTest;
|
|
use SilverStripe\UserForms\Model\EditableFormField\EditableEmailField;
|
|
|
|
class EditableEmailFieldTest extends SapphireTest
|
|
{
|
|
public function testAllowEmptyTitle()
|
|
{
|
|
/** @var EditableEmailField $field */
|
|
$field = EditableEmailField::create();
|
|
$field->Name = 'EditableFormField_123456';
|
|
$this->assertEmpty($field->getFormField()->Title());
|
|
}
|
|
}
|