SubsiteExtensionTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 3
b 0
f 0
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testOnAfterInit() 0 7 1
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