Completed
Pull Request — master (#62)
by Jason
11:55
created

DynamicBlocksSiteTreeDataExtensionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetCMSFields() 0 6 1
1
<?php
2
3
namespace Dynamic\DynamicBlocks\Test;
4
5
use SilverStripe\Dev\SapphireTest;
6
use SilverStripe\Forms\FieldList;
7
8
class DynamicBlocksSiteTreeDataExtensionTest extends SapphireTest
9
{
10
    /**
11
     * @var string
12
     */
13
    protected static $fixture_file = 'dynamic-blocks/tests/Fixtures.yml';
14
15
    /**
16
     *
17
     */
18
    public function testGetCMSFields()
19
    {
20
        $object = singleton(\Page::class);
21
        $fields = $object->getCMSFields();
22
        $this->assertInstanceOf(FieldList::class, $fields);
23
    }
24
}
25