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

DataObjectAnnotatorTaskTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConstruct() 0 6 1
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