Completed
Push — master ( 629129...532720 )
by Jason
9s
created

PromoObjectTest::testCanDelete()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
3
namespace Dynamic\Elements\Tests;
4
5
use Dynamic\Elements\Promos\Model\PromoObject;
6
use SilverStripe\Core\Injector\Injector;
7
use SilverStripe\Dev\SapphireTest;
8
use SilverStripe\Forms\FieldList;
9
use SilverStripe\Security\Member;
10
use SilverStripe\Security\Security;
11
12
class PromoObjectTest extends SapphireTest
13
{
14
    /**
15
     * @var string
16
     */
17
    protected static $fixture_file = '../fixtures.yml';
18
19
    /**
20
     * Tests getCMSFields().
21
     */
22
    public function testGetCMSFields()
23
    {
24
        $promo = Injector::inst()->create(PromoObject::class);
25
        $this->assertInstanceOf(FieldList::class, $promo->getCMSFields());
26
    }
27
}
28