Commit 4b8bcd43 by Alexander Kochetov

Unit tests fix

parent bea449f8
......@@ -2,6 +2,7 @@
namespace yiiunit\framework\rbac;
use Yii;
use yii\rbac\PhpManager;
require_once(__DIR__ . '/ManagerTestBase.php');
......@@ -10,7 +11,7 @@ class PhpManagerTest extends ManagerTestBase
{
public function setUp()
{
$authFile = \Yii::$app->getRuntimePath() . '/rbac.php';
$authFile = Yii::$app->getRuntimePath() . '/rbac.php';
@unlink($authFile);
$this->auth = new PhpManager;
$this->auth->authFile = $authFile;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment