mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 21:41:19 +08:00
Unit tests fix
This commit is contained in:
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace yiiunit\framework\rbac;
|
namespace yiiunit\framework\rbac;
|
||||||
|
|
||||||
|
use Yii;
|
||||||
use yii\rbac\PhpManager;
|
use yii\rbac\PhpManager;
|
||||||
|
|
||||||
require_once(__DIR__ . '/ManagerTestBase.php');
|
require_once(__DIR__ . '/ManagerTestBase.php');
|
||||||
@ -10,7 +11,7 @@ class PhpManagerTest extends ManagerTestBase
|
|||||||
{
|
{
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
$authFile = \Yii::$app->getRuntimePath() . '/rbac.php';
|
$authFile = Yii::$app->getRuntimePath() . '/rbac.php';
|
||||||
@unlink($authFile);
|
@unlink($authFile);
|
||||||
$this->auth = new PhpManager;
|
$this->auth = new PhpManager;
|
||||||
$this->auth->authFile = $authFile;
|
$this->auth->authFile = $authFile;
|
||||||
|
|||||||
Reference in New Issue
Block a user