Passed
Push — master ( d83585...c5f1b0 )
by Jason
10:27
created

CartReservationTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Dynamic\Foxy\Inventory\Test\Model;
4
5
use Dynamic\Foxy\Inventory\Model\CartReservation;
6
use SilverStripe\Core\Config\Config;
7
use SilverStripe\Dev\SapphireTest;
8
use SilverStripe\Forms\FieldList;
9
10
class CartReservationTest extends SapphireTest
11
{
12
    /**
13
     * @var string
14
     */
15
    protected static $fixture_file = '../fixtures.yml';
16
17
    /**
18
     *
19
     */
20
    protected function setUp()
21
    {
22
        parent::setUp();
23
24
        Config::modify()->set('Dynamic\\Foxy\\SingleSignOn\\Client\\CustomerClient', 'foxy_sso_enabled', false);
25
    }
26
27
    /**
28
     *
29
     */
30
    public function testGetCMSFields()
31
    {
32
        $object = CartReservation::singleton();
33
        $fields = $object->getCMSFields();
34
        $this->assertInstanceOf(FieldList::class, $fields);
35
    }
36
}
37