You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @link http://www.yiiframework.com/
|
|
|
|
* @copyright Copyright (c) 2008 Yii Software LLC
|
|
|
|
* @license http://www.yiiframework.com/license/
|
|
|
|
*/
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|