Code Duplication    Length = 7-7 lines in 2 locations

Tests/Unit/Service/MailServiceTest.php 2 locations

@@ 26-32 (lines=7) @@
23
        $this->mailer = new DummySwiftMailer(\Phake::mock('Swift_Transport'));
24
    }
25
26
    public function testSuccessfulSendPassword()
27
    {
28
        $ms = new MailService($this->em, $this->mailer, 'en', 'no-reply@no-reply');
29
        $user = new User();
30
        $user->setEmail('[email protected]');
31
        $this->assertTrue($ms->sendPassword($user, 'password'));
32
    }
33
34
    public function testFailureSendPassword()
35
    {
@@ 34-40 (lines=7) @@
31
        $this->assertTrue($ms->sendPassword($user, 'password'));
32
    }
33
34
    public function testFailureSendPassword()
35
    {
36
        $ms = new MailService($this->em, $this->mailer, 'en', 'no-reply@no-reply');
37
        $user = new User();
38
        $user->setEmail('[email protected]');
39
        $this->assertTrue(is_array($ms->sendPassword($user, 'password')));
40
    }
41
}
42
43
class DummyRepository