Completed
Pull Request — master (#240)
by Beñat
04:01
created

EditProfileCommandSpec   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A it_creates_a_command() 0 11 1
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\IdentityAccess\Application\Command;
14
15
use Kreta\IdentityAccess\Application\Command\EditProfileCommand;
16
use PhpSpec\ObjectBehavior;
17
18
class EditProfileCommandSpec extends ObjectBehavior
19
{
20
    function it_creates_a_command()
21
    {
22
        $this->beConstructedWith('user-id', '[email protected]', 'kreta-username', 'kreta', 'lastname');
23
        $this->shouldHaveType(EditProfileCommand::class);
24
25
        $this->id()->shouldReturn('user-id');
26
        $this->email()->shouldReturn('[email protected]');
27
        $this->username()->shouldReturn('kreta-username');
28
        $this->firstName()->shouldReturn('kreta');
29
        $this->lastName()->shouldReturn('lastname');
30
    }
31
}
32