Passed
Push — master ( bb4576...b8f326 )
by Simon
06:53
created

SubsiteExtensionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 10
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
7
use Firesphere\SolrSubsites\Tests\TestIndex;
8
use SilverStripe\Dev\SapphireTest;
9
10
class SubsiteExtensionTest extends SapphireTest
11
{
12
13
    public function testOnAfterInit()
14
    {
15
        $index = new TestIndex();
16
17
        $fields = $index->getFilterFields();
18
19
        $this->assertArrayHasKey('SubsiteID', $fields);
20
    }
21
}
22