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

ChangeEmailSpec   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A it_is_initializable() 0 8 1
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