forked from yiisoft/yii2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 yiisoft#13501.
- Loading branch information
Showing
3 changed files
with
68 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?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'] | ||
]); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters