mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
18 lines
484 B
PHP
18 lines
484 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Forms\Tests;
|
|
|
|
use SilverStripe\Dev\SapphireTest;
|
|
use SilverStripe\Forms\CheckboxField_Readonly;
|
|
|
|
class CheckboxFieldReadonlyTest extends SapphireTest
|
|
{
|
|
public function testPerformReadonlyTransformation()
|
|
{
|
|
$field = new CheckboxField_Readonly('Test');
|
|
$result = $field->performReadonlyTransformation();
|
|
$this->assertInstanceOf(CheckboxField_Readonly::class, $result);
|
|
$this->assertNotSame($result, $field);
|
|
}
|
|
}
|