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

testGetCMSFields()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
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