mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 22:30:27 +08:00
25 lines
488 B
PHP
25 lines
488 B
PHP
<?php
|
|
namespace yiiunit\framework\rbac;
|
|
|
|
use yii\caching\FileCache;
|
|
use yii\rbac\DbManager;
|
|
|
|
/**
|
|
* MySQLManagerCacheTest
|
|
* @group db
|
|
* @group rbac
|
|
*/
|
|
class MySQLManagerCacheTest extends MySQLManagerTest
|
|
{
|
|
/**
|
|
* @return \yii\rbac\ManagerInterface
|
|
*/
|
|
protected function createManager()
|
|
{
|
|
return new DbManager([
|
|
'db' => $this->getConnection(),
|
|
'cache' => new FileCache(['cachePath' => '@yiiunit/runtime/cache']),
|
|
]);
|
|
}
|
|
}
|