Yii2 framework backup
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.
 
 
 
 
 

37 lines
731 B

<?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\PgsqlMutex;
use yiiunit\framework\db\DatabaseTestCase;
/**
* Class PgsqlMutexTest.
*
* @group mutex
* @group db
* @group pgsql
*/
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(),
]);
}
}