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\mutex;
|
|
|
|
|
|
|
|
use yii\mutex\MysqlMutex;
|
|
|
|
use yiiunit\framework\db\DatabaseTestCase;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class MysqlMutexTest.
|
|
|
|
*
|
|
|
|
* @group mutex
|
|
|
|
* @group db
|
|
|
|
* @group mysql
|
|
|
|
*/
|
|
|
|
class MysqlMutexTest extends DatabaseTestCase
|
|
|
|
{
|
|
|
|
use MutexTestTrait;
|
|
|
|
|
|
|
|
protected $driverName = 'mysql';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return MysqlMutex
|
|
|
|
* @throws \yii\base\InvalidConfigException
|
|
|
|
*/
|
|
|
|
protected function createMutex()
|
|
|
|
{
|
|
|
|
return \Yii::createObject([
|
|
|
|
'class' => MysqlMutex::className(),
|
|
|
|
'db' => $this->getConnection(),
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|