Completed
Push — master ( ec1aed...07def2 )
by Robbie
13s
created

DataObjectAnnotatorTaskTest::testConstruct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace SilverLeague\IDEAnnotator\Tests;
4
5
use SilverLeague\IDEAnnotator\DataObjectAnnotatorTask;
6
use SilverStripe\Dev\SapphireTest;
7
8
class DataObjectAnnotatorTaskTest extends SapphireTest
9
{
10
    public function testConstruct()
11
    {
12
        $task = DataObjectAnnotatorTask::create();
13
        $this->assertEquals('DataObject annotations for specific DataObjects, Extensions or Controllers', $task->getTitle());
14
        $this->assertEquals("DataObject Annotator annotates your DO's if possible, helping you write better code.<br />"
15
            . 'Usage: add the module or DataObject as parameter to the URL, e.g. ?module=mysite .', $task->getDescription());
16
    }
17
}
18