mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
cd8090d247
Includes the following large-scale changes: - Impoved barrier between model and view layers - Improved casting of scalar to relevant DBField types - Improved capabilities for rendering arbitrary data in templates
17 lines
383 B
PHP
17 lines
383 B
PHP
<?php
|
|
|
|
namespace SilverStripe\ORM\Tests;
|
|
|
|
use SilverStripe\Dev\SapphireTest;
|
|
use SilverStripe\Forms\LabelField;
|
|
|
|
class LabelFieldTest extends SapphireTest
|
|
{
|
|
|
|
public function testFieldHasNoNameAttribute()
|
|
{
|
|
$field = new LabelField('MyName', 'MyTitle');
|
|
$this->assertEquals('<label id="MyName" class="readonly">MyTitle</label>', trim($field->Field()));
|
|
}
|
|
}
|