mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-06 23:39:02 +01:00
tests were reusing static DB connection instance resulting in all tests to be run against MySQL only! PgSQL and Sqlite tests are now failing because of the issue reported in #13501.
30 lines
594 B
PHP
30 lines
594 B
PHP
<?php
|
|
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']
|
|
]);
|
|
}
|
|
|
|
}
|