Completed
Branch master (1fe5d2)
by Tomasz
03:00 queued 42s
created

CommandSpec::it_is_initializable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 1
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace spec\Hexarchium\CoreDomain\UseCase\CreateModel;
4
5
use Hexarchium\CoreDomain\Model\Domain\DomainId;
6
use Hexarchium\CoreDomain\Model\Domain\Model\ModelId;
7
use Hexarchium\CoreDomain\UseCase\CreateModel\Command;
8
use PhpSpec\ObjectBehavior;
9
10
class CommandSpec extends ObjectBehavior
11
{
12
    function let(ModelId $modelId, DomainId $domainId)
13
    {
14
        $this->beConstructedWith($modelId, $domainId);
15
    }
16
17
    function it_is_initializable()
18
    {
19
        $this->shouldHaveType(Command::class);
20
    }
21
22
    function it_should_have_model_id_getter()
23
    {
24
        $this->getModelId()->shouldBeAnInstanceOf(ModelId::class);
25
    }
26
27
    function it_should_have_domain_id_getter()
28
    {
29
        $this->getDomainId()->shouldBeAnInstanceOf(DomainId::class);
30
    }
31
}
32