StaffMemberTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 15
rs 10

1 Method

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