Passed
Pull Request — master (#9)
by Matthew
03:01
created

LocatorExtensionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetCMSFields() 0 6 1
1
<?php
2
3
namespace Dynamic\Locator\React\Tests\Extensions;
4
5
use Dynamic\Locator\Locator;
6
use SilverStripe\Dev\SapphireTest;
7
use SilverStripe\Forms\FieldList;
8
9
/**
10
 * Class LocatorExtensionTest
11
 * @package Dynamic\Locator\React\Tests\Extensions
12
 */
13
class LocatorExtensionTest extends SapphireTest
14
{
15
    protected static $fixture_file = '../fixtures.yml';
16
17
    /**
18
     * Tests updateCMSFields()
19
     */
20
    public function testGetCMSFields()
21
    {
22
        /** @var Locator $obj */
23
        $obj = $this->objFromFixture(Locator::class, 'locator1');
24
        $fields = $obj->getCMSFields();
25
        $this->assertInstanceOf(FieldList::class, $fields);
26
    }
27
}
28