Passed
Pull Request — master (#69)
by
unknown
03:03
created

PresentedOptionsFieldTest   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 testConstruct() 0 6 1
1
<?php
2
3
namespace SilverStripe\CKANRegistry\Tests\Forms;
4
5
use SilverStripe\CKANRegistry\Forms\PresentedOptionsField;
6
use SilverStripe\Dev\SapphireTest;
7
8
class PresentedOptionsFieldTest extends SapphireTest
9
{
10
    public function testConstruct()
11
    {
12
        $field = new PresentedOptionsField('my-field', new Resource);
13
        $this->assertTrue(
14
            $field->hasClass('ckan-presented-options__container'),
15
            'Necessary class name for React binding is missing'
16
        );
17
    }
18
}
19