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

IniterTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 7
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
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