SubsiteExtensionTest::testOnAfterInit()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 3
c 3
b 0
f 0
dl 0
loc 7
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
4
namespace Firesphere\SolrSubsites\Tests;
5
6
use SilverStripe\Dev\SapphireTest;
7
8
class SubsiteExtensionTest extends SapphireTest
9
{
10
    public function testOnAfterInit()
11
    {
12
        $index = new TestIndex();
13
14
        $fields = $index->getFilterFields();
15
16
        $this->assertTrue(in_array('SubsiteID', $fields));
17
    }
18
}
19