Code Duplication    Length = 9-9 lines in 2 locations

tests/Entity/UserTest.php 2 locations

@@ 52-60 (lines=9) @@
49
        $this->assertSame('my_plain_password', $this->user->getPlainPassword());
50
    }
51
52
    public function testSalt()
53
    {
54
        $this->assertNull($this->user->getSalt());
55
56
        $salt = rtrim(str_replace('+', '.', base64_encode(random_bytes(32))), '=');
57
58
        $this->user->setSalt($salt);
59
        $this->assertSame($salt, $this->user->getSalt());
60
    }
61
62
    public function testEnabled()
63
    {
@@ 70-78 (lines=9) @@
67
        $this->assertTrue($this->user->isEnabled());
68
    }
69
70
    public function testConfirmationToken()
71
    {
72
        $this->assertNull($this->user->getConfirmationToken());
73
74
        $token = rtrim(strtr(base64_encode(random_bytes(32)), '+/', '-_'), '=');
75
76
        $this->user->setConfirmationToken($token);
77
        $this->assertSame($token, $this->user->getConfirmationToken());
78
    }
79
80
    public function testRoles()
81
    {