Passed
Push — nested-vendor ( f8843a )
by Sam
09:43
created

testPerformReadonlyTransformation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace SilverStripe\Forms\Tests;
4
5
use SilverStripe\Dev\SapphireTest;
6
use SilverStripe\Forms\CheckboxField_Readonly;
7
8
class CheckboxFieldReadonlyTest extends SapphireTest
9
{
10
    public function testPerformReadonlyTransformation()
11
    {
12
        $field = new CheckboxField_Readonly('Test');
13
        $result = $field->performReadonlyTransformation();
14
        $this->assertInstanceOf(CheckboxField_Readonly::class, $result);
15
        $this->assertNotSame($result, $field);
16
    }
17
}
18