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

SubsiteStateTest::testIsApplicable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 6
rs 10
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