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