Code Duplication    Length = 20-20 lines in 2 locations

spec/Message/User/UserPatchMessageSpec.php 1 location

@@ 17-36 (lines=20) @@
14
        $this->shouldHaveType(UserPatchMessage::class);
15
    }
16
17
    function it_should_build()
18
    {
19
        $this->setFirstName('Example');
20
        $this->setLastName('');
21
        $this->setEmail('[email protected]');
22
        $this->setPlainPassword('12345');
23
        $this->setPhone('+1 234 567 890');
24
        $this->setDefaultLocale('en');
25
26
        $data = [
27
            'firstName'     => 'Example',
28
            'lastName'      => '',
29
            'email'         => '[email protected]',
30
            'plainPassword' => '12345',
31
            'phone'         => '+1 234 567 890',
32
            'defaultLocale' => 'en',
33
        ];
34
35
        $this->build()->shouldReturn($data);
36
    }
37
38
    function it_should_create_from_user(User $user)
39
    {

spec/Message/User/UserPostMessageSpec.php 1 location

@@ 17-36 (lines=20) @@
14
        $this->shouldHaveType(UserPostMessage::class);
15
    }
16
17
    function it_should_build()
18
    {
19
        $this->setFirstName('Example');
20
        $this->setLastName('');
21
        $this->setEmail('[email protected]');
22
        $this->setPlainPassword('12345');
23
        $this->setPhone('+1 234 567 890');
24
        $this->setDefaultLocale('en');
25
26
        $data = [
27
            'firstName'     => 'Example',
28
            'lastName'      => '',
29
            'email'         => '[email protected]',
30
            'plainPassword' => '12345',
31
            'phone'         => '+1 234 567 890',
32
            'defaultLocale' => 'en',
33
        ];
34
35
        $this->build()->shouldReturn($data);
36
    }
37
38
    function it_should_ask_for_plain_password()
39
    {