Completed
Push — master ( 2a0b01...28b040 )
by Tomasz
02:38
created

UseCaseSpec::let()   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 1
1
<?php
2
3
namespace spec\Hexarchium\CoreDomain\Model\Domain\Entity;
4
5
use Hexarchium\CoreDomain\Aggregate\AggregateRootInterface;
6
use Hexarchium\CoreDomain\Model\Domain\Entity\UseCase;
7
use Hexarchium\CoreDomain\Model\Domain\UseCase\UseCaseId;
8
use PhpSpec\ObjectBehavior;
9
10
class UseCaseSpec extends ObjectBehavior
11
{
12
    function let(UseCaseId $modelId)
13
    {
14
        $this->beConstructedWith($modelId);
15
    }
16
17
    function it_is_initializable()
18
    {
19
        $this->shouldHaveType(UseCase::class);
20
        $this->shouldNotBeAnInstanceOf(AggregateRootInterface::class);
21
    }
22
23
    function it_should_return_id_by_getter()
24
    {
25
        $this->getId()->shouldReturnAnInstanceOf(UseCaseId::class);
26
    }
27
}
28