Passed
Push — master ( aaee89...563854 )
by Simon
10:13 queued 10s
created

SubsiteStateTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testIsApplicable() 0 6 1
1
<?php
2
3
4
namespace Firesphere\SolrSubsites\Tests;
5
6
7
use Firesphere\SolrSubsites\States\SubsiteState;
8
use SilverStripe\Dev\SapphireTest;
9
10
class SubsiteStateTest extends SapphireTest
11
{
12
13
    public function testIsApplicable()
14
    {
15
        $state = new SubsiteState();
16
17
        $this->assertFalse($state->stateIsApplicable(10));
18
        $this->assertTrue($state->stateIsApplicable(0));
19
    }
20
}
21