Completed
Push — master ( 0ca8c7...32ef7a )
by Andrii
04:22
created

IniterTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 1
cbo 3
dl 0
loc 17
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 7 1
1
<?php
2
3
/*
4
 * RBAC implementation for HiPanel
5
 *
6
 * @link      https://github.com/hiqdev/hipanel-rbac
7
 * @package   hipanel-rbac
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hipanel\rbac\tests\unit;
13
14
use hipanel\rbac\AuthManager;
15
use hipanel\rbac\Initer;
16
use Yii;
17
18
/**
19
 * AuthManagerTest class.
20
 *
21
 * @author Andrii Vasyliev <[email protected]>
22
 */
23
class IniterTest extends \PHPUnit_Framework_TestCase
24
{
25
    use CheckAccessTrait;
26
27
    /**
28
     * @var AuthManager
29
     */
30
    protected $auth;
31
32
    protected function setUp()
33
    {
34
        $this->auth = Yii::createObject(AuthManager::class);
35
36
        Initer::reinit($this->auth);
37
        $this->setAssignments();
38
    }
39
}
40