Completed
Push — master ( f021c8...431426 )
by Hugues
16:56
created

ChangeEmailSpec::it_is_initializable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 6
nc 1
nop 0
1
<?php
2
3
namespace spec\HMLB\UserBundle\Command;
4
5
use HMLB\DDD\Entity\Identity;
6
use HMLB\UserBundle\Command\ChangeEmail;
7
use PhpSpec\ObjectBehavior;
8
use Prophecy\Argument;
9
10
/**
11
 * ChangeEmailSpec
12
 *
13
 * @mixin ChangeEmail
14
 * @author Hugues Maignol <[email protected]>
15
 */
16
class ChangeEmailSpec extends ObjectBehavior
17
{
18
    function it_is_initializable()
19
    {
20
        $id = new Identity();
21
        $this->beConstructedWith('[email protected]', $id);
22
        $this->getEmail()->shouldBe('[email protected]');
23
        $this->getUserId()->shouldBe($id);
24
        $this::messageName()->shouldBe('hmlb_user_change_email');
25
    }
26
27
}
28