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

CheckboxFieldReadonlyTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testPerformReadonlyTransformation() 0 6 1
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