Completed
Pull Request — master (#130)
by Gorka
02:55
created

TaskPrioritySpec   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 20
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A it_creates_a_low_priority_task_value() 0 5 1
A it_creates_a_medium_priority_task_value() 0 5 1
A it_creates_a_high_priority_task_value() 0 5 1
1
<?php
2
3
/*
4
 * This file is part of the Kreta package.
5
 *
6
 * (c) Beñat Espiña <[email protected]>
7
 * (c) Gorka Laucirica <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace Spec\Kreta\TaskManager\Domain\Model\Project\Task;
14
15
use Kreta\TaskManager\Domain\Model\Project\Task\TaskPriority;
16
use PhpSpec\ObjectBehavior;
17
18
class TaskPrioritySpec extends ObjectBehavior
19
{
20
    function it_creates_a_low_priority_task_value()
21
    {
22
        $this->beConstructedLow();
23
        $this->priority()->shouldReturn(TaskPriority::LOW);
24
    }
25
26
    function it_creates_a_medium_priority_task_value()
27
    {
28
        $this->beConstructedMedium();
29
        $this->priority()->shouldReturn(TaskPriority::MEDIUM);
30
    }
31
32
    function it_creates_a_high_priority_task_value()
33
    {
34
        $this->beConstructedHigh();
35
        $this->priority()->shouldReturn(TaskPriority::HIGH);
36
    }
37
}
38