Completed
Push — master ( 3b3980...4ce207 )
by Gorka
9s
created

OrganizationParticipantSpec::it_gets_id()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 5
Ratio 100 %

Importance

Changes 0
Metric Value
dl 5
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
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\Organization;
14
15
use Kreta\SharedKernel\Domain\Model\Identity\EmailAddress;
16
use Kreta\SharedKernel\Domain\Model\Identity\Username;
17
use Kreta\TaskManager\Domain\Model\Organization\OrganizationParticipant;
18
use Kreta\TaskManager\Domain\Model\Organization\OrganizationParticipantId;
19
use Kreta\TaskManager\Domain\Model\Organization\Participant;
20
use PhpSpec\ObjectBehavior;
21
22
class OrganizationParticipantSpec extends ObjectBehavior
23
{
24
    function let(OrganizationParticipantId $id, EmailAddress $email, Username $username)
25
    {
26
        $this->beConstructedWith($id, $email, $username);
27
    }
28
29
    function it_is_initializable()
30
    {
31
        $this->shouldHaveType(OrganizationParticipant::class);
32
    }
33
34
    function it_extends_participant()
35
    {
36
        $this->shouldHaveType(Participant::class);
37
    }
38
}
39