mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-22 06:57:12 +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.
24 lines
493 B
PHP
24 lines
493 B
PHP
<?php
|
|
namespace yiiunit\framework\rbac;
|
|
|
|
/**
|
|
* SqliteManagerTest
|
|
* @group db
|
|
* @group rbac
|
|
*/
|
|
class SqliteManagerTest extends DbManagerTestCase
|
|
{
|
|
protected static $driverName = 'sqlite';
|
|
|
|
protected static $sqliteDb;
|
|
|
|
public static function createConnection()
|
|
{
|
|
// sqlite db is in memory so it can not be reused
|
|
if (static::$sqliteDb === null) {
|
|
static::$sqliteDb = parent::createConnection();
|
|
}
|
|
return static::$sqliteDb;
|
|
}
|
|
}
|