Passed
Push — master ( 07f9ca...aeb163 )
by Jason
05:41 queued 03:40
created

CustomerPortalTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
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\Foxy\Portal\Test\Page;
4
5
use Dynamic\Foxy\Portal\Page\CustomerPortal;
6
use SilverStripe\Dev\SapphireTest;
7
use SilverStripe\Forms\FieldList;
8
9
/**
10
 * Class CustomerPortalTest
11
 * @package Dynamic\Foxy\Portal\Test\Page
12
 */
13
class CustomerPortalTest extends SapphireTest
14
{
15
    /**
16
     * @var string
17
     */
18
    protected static $fixture_file = '../fixtures.yml';
19
20
    /**
21
     *
22
     */
23
    public function testGetCMSFields()
24
    {
25
        $object = $this->objFromFixture(CustomerPortal::class, 'one');
26
        $fields = $object->getCMSFields();
27
        $this->assertInstanceOf(FieldList::class, $fields);
28
    }
29
}
30