Code Duplication    Length = 12-13 lines in 2 locations

tests/unit/CheckAccessTrait.php 2 locations

@@ 70-81 (lines=12) @@
67
        ]);
68
    }
69
70
    public function testClient()
71
    {
72
        $this->assertAccesses('role:client', [
73
            'restore-password', 'deposit',
74
            'ticket.read', 'ticket.create', 'ticket.answer', 'ticket.close',
75
            'domain.read', 'domain.update', 'domain.pay', 'domain.push',
76
            'certificate.read', 'certificate.create', 'certificate.update', 'certificate.pay', 'certificate.push',
77
            'server.read', 'server.pay',
78
            'account.read', 'account.create', 'account.update', 'account.delete',
79
            'bill.read', 'tariff.read',
80
        ]);
81
    }
82
83
    public function testSupport()
84
    {
@@ 97-109 (lines=13) @@
94
        ]);
95
    }
96
97
    public function testAdmin()
98
    {
99
        $this->assertAccesses('role:admin', [
100
            'access-subclients', 'support', 'admin',
101
            'ticket.read', 'ticket.create', 'ticket.answer', 'ticket.close', 'ticket.update', 'ticket.delete',
102
            'client.read',
103
            'domain.read', 'domain.update',
104
            'certificate.read', 'certificate.create', 'certificate.update',
105
            'server.read', 'server.create', 'server.update', 'server.delete',
106
            'account.read', 'account.create', 'account.update', 'account.delete',
107
            'tariff.read',
108
        ]);
109
    }
110
111
    public function testManager()
112
    {