mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
18 lines
378 B
PHP
18 lines
378 B
PHP
<?php
|
|
|
|
use SilverStripe\Dev\SapphireTest;
|
|
use SilverStripe\Forms\LabelField;
|
|
|
|
/**
|
|
* @package framework
|
|
* @subpackage tests
|
|
*/
|
|
|
|
class LabelFieldTest extends SapphireTest {
|
|
|
|
public function testFieldHasNoNameAttribute() {
|
|
$field = new LabelField('MyName', 'MyTitle');
|
|
$this->assertEquals(trim($field->Field()), '<label id="MyName" class="readonly">MyTitle</label>');
|
|
}
|
|
}
|