Passed
Push — master ( 14d1c0...a78c29 )
by Jason
01:30
created

ShippableTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testUpdateCMSFields() 0 5 1
1
<?php
2
3
namespace Dynamic\Foxy\Test\Extension;
4
5
use Dynamic\Foxy\Extension\Purchasable;
6
use Dynamic\Foxy\Test\TestOnly\TestShippableProduct;
7
use SilverStripe\Core\Injector\Injector;
8
use SilverStripe\Dev\Debug;
9
use SilverStripe\Dev\SapphireTest;
10
use SilverStripe\Forms\FieldList;
11
12
class ShippableTest extends SapphireTest
13
{
14
    protected static $fixture_file = '../fixtures.yml';
15
16
    public function testUpdateCMSFields()
17
    {
18
        $object = Injector::inst()->create(TestShippableProduct::class);
19
        $fields = $object->getCMSFields();
20
        $this->assertInstanceOf(FieldList::class, $fields);
21
    }
22
}
23