silverstripe-framework/tests/model/LabelFieldTest.php

14 lines
289 B
PHP

<?php
/**
* @package sapphire
* @subpackage tests
*/
class LabelFieldTest extends SapphireTest {
function testFieldHasNoNameAttribute() {
$field = new LabelField('MyName', 'MyTitle');
$this->assertEquals($field->Field(), '<label id="MyName" class="label">MyTitle</label>');
}
}