mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-12 20:21:19 +08:00
35 lines
613 B
PHP
35 lines
613 B
PHP
<?php
|
|
|
|
namespace yiiunit\framework\mutex;
|
|
|
|
use yii\mutex\PgsqlMutex;
|
|
use yiiunit\framework\db\DatabaseTestCase;
|
|
|
|
/**
|
|
* Class PgsqlMutexTest
|
|
*
|
|
* @group mutex
|
|
* @group pgsql
|
|
*
|
|
* @package yiiunit\framework\mutex
|
|
*/
|
|
class PgsqlMutexTest extends DatabaseTestCase
|
|
{
|
|
use MutexTestTrait;
|
|
|
|
protected $driverName = 'pgsql';
|
|
|
|
/**
|
|
* @return PgsqlMutex
|
|
* @throws \yii\base\InvalidConfigException
|
|
*/
|
|
protected function createMutex()
|
|
{
|
|
return \Yii::createObject([
|
|
'class' => PgsqlMutex::className(),
|
|
'db' => $this->getConnection(),
|
|
]);
|
|
}
|
|
|
|
}
|