mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-27 21:15:40 +02:00
14 lines
300 B
PHP
14 lines
300 B
PHP
<?php
|
|
/**
|
|
* @package framework
|
|
* @subpackage tests
|
|
*/
|
|
|
|
class LabelFieldTest extends SapphireTest {
|
|
|
|
public function testFieldHasNoNameAttribute() {
|
|
$field = new LabelField('MyName', 'MyTitle');
|
|
$this->assertEquals($field->Field(), '<label id="MyName" class="readonly">MyTitle</label>');
|
|
}
|
|
}
|