ElementListTest::testGetRelations()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
3
namespace DNADesign\ElementalList\Tests;
4
5
use DNADesign\ElementalList\Model\ElementList;
6
use SilverStripe\Dev\SapphireTest;
7
8
class ElementListTest extends SapphireTest
9
{
10
    public function testGetRelations()
11
    {
12
        $list = ElementList::create();
13
14
        $this->assertEquals(['Elements'], $list->getElementalRelations());
15
    }
16
17
    public function testGetCmsFields()
18
    {
19
        // todo
20
    }
21
22
    public function testForTemplate()
23
    {
24
        // todo
25
    }
26
}
27