mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-15 23:04:54 +08:00
35 lines
741 B
PHP
35 lines
741 B
PHP
<?php
|
|
/**
|
|
* @link http://www.yiiframework.com/
|
|
* @copyright Copyright (c) 2008 Yii Software LLC
|
|
* @license http://www.yiiframework.com/license/
|
|
*/
|
|
|
|
namespace yiiunit\framework\rbac;
|
|
|
|
use yii\caching\FileCache;
|
|
use yii\rbac\DbManager;
|
|
|
|
/**
|
|
* PgSQLManagerTest.
|
|
* @group db
|
|
* @group rbac
|
|
* @group pgsql
|
|
*/
|
|
class PgSQLManagerCacheTest extends DbManagerTestCase
|
|
{
|
|
protected static $driverName = 'pgsql';
|
|
|
|
/**
|
|
* @return \yii\rbac\ManagerInterface
|
|
*/
|
|
protected function createManager()
|
|
{
|
|
return new DbManager([
|
|
'db' => $this->getConnection(),
|
|
'cache' => new FileCache(['cachePath' => '@yiiunit/runtime/cache']),
|
|
'defaultRoles' => ['myDefaultRole'],
|
|
]);
|
|
}
|
|
}
|