Completed
Push — master ( cdb55b...3f24cf )
by Gorka
9s
created

UnauthorizedTaskResourceExceptionSpec   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 13
c 0
b 0
f 0
rs 10
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A it_is_initializable() 0 5 1
A it_returns_a_message() 0 4 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\SharedKernel\Domain\Model\Exception;
16
use Kreta\TaskManager\Domain\Model\Project\Task\UnauthorizedTaskResourceException;
17
use PhpSpec\ObjectBehavior;
18
19
class UnauthorizedTaskResourceExceptionSpec extends ObjectBehavior
20
{
21
    function it_is_initializable()
22
    {
23
        $this->shouldHaveType(UnauthorizedTaskResourceException::class);
24
        $this->shouldHaveType(Exception::class);
25
    }
26
27
    function it_returns_a_message()
28
    {
29
        $this->getMessage()->shouldReturn('Not allowed to perform this task resource');
30
    }
31
}
32