FeedReaderPageTest::testService()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace eNTiDi\FeedReader\Tests;
4
5
use eNTiDi\FeedReader\FeedReaderPage;
6
use SilverStripe\Dev\SapphireTest;
7
8
class FeedReaderPageTest extends SapphireTest
9
{
10
    protected static $fixture_file = 'FeedReader.yml';
11
12
    public function testService()
13
    {
14
        $page = $this->objFromFixture(FeedReaderPage::class, 'TestPage');
15
16
        $service = $page->getService();
17
        $this->assertTrue($service instanceof \eNTiDi\FeedReader\FeedReaderService);
18
    }
19
}
20