Passed
Push — master ( 7b7e33...6ff579 )
by Tomasz
04:38
created

CommandSpec::it_is_initializable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 5
rs 9.4285
c 1
b 0
f 1
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace spec\Hexarchium\CoreDomain\UseCase\CreateDomain;
4
5
use Hexarchium\CoreDomain\UseCase\CreateDomain\Command;
6
use PhpSpec\ObjectBehavior;
7
8
class CommandSpec extends ObjectBehavior
9
{
10
    function it_is_initializable()
11
    {
12
        $this->defaultConstructor();
13
        $this->shouldHaveType(Command::class);
14
    }
15
16
    function defaultConstructor()
17
    {
18
        $this->beConstructedWith('Domain');
19
    }
20
21
    function it_id_have_access_by_getter()
22
    {
23
        $this->defaultConstructor();
24
        $this->getDomainId()->shouldReturn('Domain');
25
    }
26
}
27