Carsten Brandt
8 years ago
committed by
GitHub
124 changed files with 2549 additions and 2235 deletions
@ -1,25 +0,0 @@ |
|||||||
<?php |
|
||||||
/** |
|
||||||
* @link http://www.yiiframework.com/ |
|
||||||
* @copyright Copyright (c) 2008 Yii Software LLC |
|
||||||
* @license http://www.yiiframework.com/license/ |
|
||||||
*/ |
|
||||||
|
|
||||||
namespace yiiunit\framework\db; |
|
||||||
|
|
||||||
|
|
||||||
use yii\db\ColumnSchema; |
|
||||||
use yii\db\Schema; |
|
||||||
use yiiunit\TestCase; |
|
||||||
|
|
||||||
/** |
|
||||||
* ColumnSchemaTest tests ColumnSchema |
|
||||||
*/ |
|
||||||
class ColumnSchemaTest extends TestCase |
|
||||||
{ |
|
||||||
public function testDbTypecastWithEmptyCharType() |
|
||||||
{ |
|
||||||
$columnSchema = new ColumnSchema(['type' => Schema::TYPE_CHAR]); |
|
||||||
$this->assertSame('', $columnSchema->dbTypecast('')); |
|
||||||
} |
|
||||||
} |
|
@ -1,14 +1,13 @@ |
|||||||
<?php |
<?php |
||||||
namespace yiiunit\framework\db\cubrid; |
|
||||||
|
|
||||||
use yiiunit\framework\data\ActiveDataProviderTest; |
namespace yiiunit\framework\db\cubrid; |
||||||
|
|
||||||
/** |
/** |
||||||
* @group db |
* @group db |
||||||
* @group cubrid |
* @group cubrid |
||||||
* @group data |
* @group data |
||||||
*/ |
*/ |
||||||
class CubridActiveDataProviderTest extends ActiveDataProviderTest |
class ActiveDataProviderTest extends \yiiunit\framework\data\ActiveDataProviderTest |
||||||
{ |
{ |
||||||
public $driverName = 'cubrid'; |
public $driverName = 'cubrid'; |
||||||
} |
} |
@ -1,13 +1,13 @@ |
|||||||
<?php |
<?php |
||||||
namespace yiiunit\framework\db\cubrid; |
|
||||||
|
|
||||||
use yiiunit\framework\db\ActiveRecordTest; |
namespace yiiunit\framework\db\cubrid; |
||||||
|
|
||||||
/** |
/** |
||||||
* @group db |
* @group db |
||||||
* @group cubrid |
* @group cubrid |
||||||
|
* @group test |
||||||
*/ |
*/ |
||||||
class CubridActiveRecordTest extends ActiveRecordTest |
class ActiveFixtureTest extends \yiiunit\framework\test\ActiveFixtureTest |
||||||
{ |
{ |
||||||
public $driverName = 'cubrid'; |
public $driverName = 'cubrid'; |
||||||
} |
} |
@ -1,13 +1,12 @@ |
|||||||
<?php |
<?php |
||||||
namespace yiiunit\framework\db\cubrid; |
|
||||||
|
|
||||||
use yiiunit\framework\db\QueryTest; |
namespace yiiunit\framework\db\cubrid; |
||||||
|
|
||||||
/** |
/** |
||||||
* @group db |
* @group db |
||||||
* @group cubrid |
* @group cubrid |
||||||
*/ |
*/ |
||||||
class CubridQueryTest extends QueryTest |
class ActiveRecordTest extends \yiiunit\framework\db\ActiveRecordTest |
||||||
{ |
{ |
||||||
public $driverName = 'cubrid'; |
public $driverName = 'cubrid'; |
||||||
} |
} |
@ -0,0 +1,12 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\cubrid; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group cubrid |
||||||
|
*/ |
||||||
|
class BatchQueryResultTest extends \yiiunit\framework\db\BatchQueryResultTest |
||||||
|
{ |
||||||
|
public $driverName = 'cubrid'; |
||||||
|
} |
@ -1,13 +1,12 @@ |
|||||||
<?php |
<?php |
||||||
namespace yiiunit\framework\db\cubrid; |
|
||||||
|
|
||||||
use yiiunit\framework\db\CommandTest; |
namespace yiiunit\framework\db\cubrid; |
||||||
|
|
||||||
/** |
/** |
||||||
* @group db |
* @group db |
||||||
* @group cubrid |
* @group cubrid |
||||||
*/ |
*/ |
||||||
class CubridCommandTest extends CommandTest |
class CommandTest extends \yiiunit\framework\db\CommandTest |
||||||
{ |
{ |
||||||
public $driverName = 'cubrid'; |
public $driverName = 'cubrid'; |
||||||
|
|
@ -1,13 +1,12 @@ |
|||||||
<?php |
<?php |
||||||
namespace yiiunit\framework\db\cubrid; |
|
||||||
|
|
||||||
use yiiunit\framework\db\ConnectionTest; |
namespace yiiunit\framework\db\cubrid; |
||||||
|
|
||||||
/** |
/** |
||||||
* @group db |
* @group db |
||||||
* @group cubrid |
* @group cubrid |
||||||
*/ |
*/ |
||||||
class CubridConnectionTest extends ConnectionTest |
class ConnectionTest extends \yiiunit\framework\db\ConnectionTest |
||||||
{ |
{ |
||||||
public $driverName = 'cubrid'; |
public $driverName = 'cubrid'; |
||||||
|
|
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\cubrid; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group cubrid |
||||||
|
* @group validators |
||||||
|
*/ |
||||||
|
class ExistValidatorTest extends \yiiunit\framework\validators\ExistValidatorTest |
||||||
|
{ |
||||||
|
public $driverName = 'cubrid'; |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\cubrid; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group cubrid |
||||||
|
*/ |
||||||
|
class QueryTest extends \yiiunit\framework\db\QueryTest |
||||||
|
{ |
||||||
|
public $driverName = 'cubrid'; |
||||||
|
} |
@ -1,14 +1,14 @@ |
|||||||
<?php |
<?php |
||||||
|
|
||||||
namespace yiiunit\framework\db\cubrid; |
namespace yiiunit\framework\db\cubrid; |
||||||
|
|
||||||
use yii\db\Expression; |
use yii\db\Expression; |
||||||
use yiiunit\framework\db\SchemaTest; |
|
||||||
|
|
||||||
/** |
/** |
||||||
* @group db |
* @group db |
||||||
* @group cubrid |
* @group cubrid |
||||||
*/ |
*/ |
||||||
class CubridSchemaTest extends SchemaTest |
class SchemaTest extends \yiiunit\framework\db\SchemaTest |
||||||
{ |
{ |
||||||
public $driverName = 'cubrid'; |
public $driverName = 'cubrid'; |
||||||
|
|
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\cubrid; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group cubrid |
||||||
|
* @group validators |
||||||
|
*/ |
||||||
|
class UniqueValidatorTest extends \yiiunit\framework\validators\UniqueValidatorTest |
||||||
|
{ |
||||||
|
public $driverName = 'cubrid'; |
||||||
|
} |
@ -1,14 +1,13 @@ |
|||||||
<?php |
<?php |
||||||
namespace yiiunit\framework\db\mssql; |
|
||||||
|
|
||||||
use yiiunit\framework\data\ActiveDataProviderTest; |
namespace yiiunit\framework\db\mssql; |
||||||
|
|
||||||
/** |
/** |
||||||
* @group db |
* @group db |
||||||
* @group mssql |
* @group mssql |
||||||
* @group data |
* @group data |
||||||
*/ |
*/ |
||||||
class MssqlActiveDataProviderTest extends ActiveDataProviderTest |
class ActiveDataProviderTest extends \yiiunit\framework\data\ActiveDataProviderTest |
||||||
{ |
{ |
||||||
public $driverName = 'sqlsrv'; |
public $driverName = 'sqlsrv'; |
||||||
} |
} |
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\mssql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group mssql |
||||||
|
* @group test |
||||||
|
*/ |
||||||
|
class ActiveFixtureTest extends \yiiunit\framework\test\ActiveFixtureTest |
||||||
|
{ |
||||||
|
public $driverName = 'sqlsrv'; |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\mssql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group mssql |
||||||
|
*/ |
||||||
|
class BatchQueryResultTest extends \yiiunit\framework\db\BatchQueryResultTest |
||||||
|
{ |
||||||
|
public $driverName = 'sqlsrv'; |
||||||
|
} |
@ -0,0 +1,24 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\mssql; |
||||||
|
|
||||||
|
use yii\db\ColumnSchemaBuilder; |
||||||
|
use yii\db\Schema; |
||||||
|
|
||||||
|
/** |
||||||
|
* ColumnSchemaBuilderTest tests ColumnSchemaBuilder for MSSQL |
||||||
|
* @group db |
||||||
|
* @group mssql |
||||||
|
*/ |
||||||
|
class ColumnSchemaBuilderTest extends \yiiunit\framework\db\ColumnSchemaBuilderTest |
||||||
|
{ |
||||||
|
/** |
||||||
|
* @param string $type |
||||||
|
* @param integer $length |
||||||
|
* @return ColumnSchemaBuilder |
||||||
|
*/ |
||||||
|
public function getColumnSchemaBuilder($type, $length = null) |
||||||
|
{ |
||||||
|
return new ColumnSchemaBuilder($type, $length); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\mssql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group mssql |
||||||
|
* @group validators |
||||||
|
*/ |
||||||
|
class ExistValidatorTest extends \yiiunit\framework\validators\ExistValidatorTest |
||||||
|
{ |
||||||
|
public $driverName = 'mssql'; |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\mssql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group mssql |
||||||
|
*/ |
||||||
|
class SchemaTest extends \yiiunit\framework\db\SchemaTest |
||||||
|
{ |
||||||
|
public $driverName = 'sqlsrv'; |
||||||
|
} |
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\mssql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group mssql |
||||||
|
* @group validators |
||||||
|
*/ |
||||||
|
class UniqueValidatorTest extends \yiiunit\framework\validators\UniqueValidatorTest |
||||||
|
{ |
||||||
|
public $driverName = 'sqlsrv'; |
||||||
|
} |
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\mysql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group mysql |
||||||
|
* @group data |
||||||
|
*/ |
||||||
|
class ActiveDataProviderTest extends \yiiunit\framework\data\ActiveDataProviderTest |
||||||
|
{ |
||||||
|
public $driverName = 'mysql'; |
||||||
|
} |
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\mysql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group mysql |
||||||
|
* @group test |
||||||
|
*/ |
||||||
|
class ActiveFixtureTest extends \yiiunit\framework\test\ActiveFixtureTest |
||||||
|
{ |
||||||
|
public $driverName = 'mysql'; |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\mysql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group mysql |
||||||
|
*/ |
||||||
|
class ActiveRecordTest extends \yiiunit\framework\db\ActiveRecordTest |
||||||
|
{ |
||||||
|
public $driverName = 'mysql'; |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\mysql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group mysql |
||||||
|
*/ |
||||||
|
class BatchQueryResultTest extends \yiiunit\framework\db\BatchQueryResultTest |
||||||
|
{ |
||||||
|
public $driverName = 'mysql'; |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\mysql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group mysql |
||||||
|
*/ |
||||||
|
class CommandTest extends \yiiunit\framework\db\CommandTest |
||||||
|
{ |
||||||
|
public $driverName = 'mysql'; |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\mysql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group mysql |
||||||
|
*/ |
||||||
|
class ConnectionTest extends \yiiunit\framework\db\ConnectionTest |
||||||
|
{ |
||||||
|
protected $driverName = 'mysql'; |
||||||
|
} |
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\mysql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group mysql |
||||||
|
* @group validators |
||||||
|
*/ |
||||||
|
class ExistValidatorTest extends \yiiunit\framework\validators\ExistValidatorTest |
||||||
|
{ |
||||||
|
public $driverName = 'sqlsrv'; |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\mysql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group mysql |
||||||
|
*/ |
||||||
|
class QueryTest extends \yiiunit\framework\db\QueryTest |
||||||
|
{ |
||||||
|
protected $driverName = 'mysql'; |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\mysql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group mysql |
||||||
|
*/ |
||||||
|
class SchemaTest extends \yiiunit\framework\db\SchemaTest |
||||||
|
{ |
||||||
|
public $driverName = 'mysql'; |
||||||
|
} |
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\mysql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group mysql |
||||||
|
* @group validators |
||||||
|
*/ |
||||||
|
class UniqueValidatorTest extends \yiiunit\framework\validators\UniqueValidatorTest |
||||||
|
{ |
||||||
|
public $driverName = 'mysql'; |
||||||
|
} |
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\oci; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group oci |
||||||
|
* @group data |
||||||
|
*/ |
||||||
|
class ActiveDataProviderTest extends \yiiunit\framework\data\ActiveDataProviderTest |
||||||
|
{ |
||||||
|
public $driverName = 'oci'; |
||||||
|
} |
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\oci; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group oci |
||||||
|
* @group test |
||||||
|
*/ |
||||||
|
class ActiveFixtureTest extends \yiiunit\framework\test\ActiveFixtureTest |
||||||
|
{ |
||||||
|
public $driverName = 'oci'; |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\oci; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group oci |
||||||
|
*/ |
||||||
|
class BatchQueryResultTest extends \yiiunit\framework\db\BatchQueryResultTest |
||||||
|
{ |
||||||
|
public $driverName = 'oci'; |
||||||
|
} |
@ -1,14 +1,14 @@ |
|||||||
<?php |
<?php |
||||||
|
|
||||||
namespace yiiunit\framework\db\oci; |
namespace yiiunit\framework\db\oci; |
||||||
|
|
||||||
use yii\db\Schema; |
use yii\db\Schema; |
||||||
use yiiunit\framework\db\CommandTest; |
|
||||||
|
|
||||||
/** |
/** |
||||||
* @group db |
* @group db |
||||||
* @group oci |
* @group oci |
||||||
*/ |
*/ |
||||||
class OracleCommandTest extends CommandTest |
class CommandTest extends \yiiunit\framework\db\CommandTest |
||||||
{ |
{ |
||||||
protected $driverName = 'oci'; |
protected $driverName = 'oci'; |
||||||
|
|
@ -0,0 +1,12 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\oci; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group oci |
||||||
|
*/ |
||||||
|
class ConnectionTest extends \yiiunit\framework\db\ConnectionTest |
||||||
|
{ |
||||||
|
protected $driverName = 'oci'; |
||||||
|
} |
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\oci; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group oci |
||||||
|
* @group validators |
||||||
|
*/ |
||||||
|
class ExistValidatorTest extends \yiiunit\framework\validators\ExistValidatorTest |
||||||
|
{ |
||||||
|
public $driverName = 'oci'; |
||||||
|
} |
@ -1,16 +0,0 @@ |
|||||||
<?php |
|
||||||
namespace yiiunit\framework\db\oci; |
|
||||||
|
|
||||||
use yiiunit\framework\data\ActiveDataProviderTest; |
|
||||||
use yii\data\ActiveDataProvider; |
|
||||||
use yiiunit\data\ar\Order; |
|
||||||
|
|
||||||
/** |
|
||||||
* @group db |
|
||||||
* @group oci |
|
||||||
* @group data |
|
||||||
*/ |
|
||||||
class OracleActiveDataProviderTest extends ActiveDataProviderTest |
|
||||||
{ |
|
||||||
public $driverName = 'oci'; |
|
||||||
} |
|
@ -1,14 +1,14 @@ |
|||||||
<?php |
<?php |
||||||
|
|
||||||
namespace yiiunit\framework\db\oci; |
namespace yiiunit\framework\db\oci; |
||||||
|
|
||||||
use yiiunit\framework\db\QueryTest; |
|
||||||
use yii\db\Query; |
use yii\db\Query; |
||||||
|
|
||||||
/** |
/** |
||||||
* @group db |
* @group db |
||||||
* @group oci |
* @group oci |
||||||
*/ |
*/ |
||||||
class OracleQueryTest extends QueryTest |
class QueryTest extends \yiiunit\framework\db\QueryTest |
||||||
{ |
{ |
||||||
protected $driverName = 'oci'; |
protected $driverName = 'oci'; |
||||||
|
|
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\oci; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group oci |
||||||
|
* @group validators |
||||||
|
*/ |
||||||
|
class UniqueValidatorTest extends \yiiunit\framework\validators\UniqueValidatorTest |
||||||
|
{ |
||||||
|
public $driverName = 'oci'; |
||||||
|
} |
@ -1,14 +1,13 @@ |
|||||||
<?php |
<?php |
||||||
namespace yiiunit\framework\db\pgsql; |
|
||||||
|
|
||||||
use yiiunit\framework\data\ActiveDataProviderTest; |
namespace yiiunit\framework\db\pgsql; |
||||||
|
|
||||||
/** |
/** |
||||||
* @group db |
* @group db |
||||||
* @group pgsql |
* @group pgsql |
||||||
* @group data |
* @group data |
||||||
*/ |
*/ |
||||||
class PostgreSQLActiveDataProviderTest extends ActiveDataProviderTest |
class ActiveDataProviderTest extends \yiiunit\framework\data\ActiveDataProviderTest |
||||||
{ |
{ |
||||||
public $driverName = 'pgsql'; |
public $driverName = 'pgsql'; |
||||||
} |
} |
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\pgsql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group pgsql |
||||||
|
* @group test |
||||||
|
*/ |
||||||
|
class ActiveFixtureTest extends \yiiunit\framework\test\ActiveFixtureTest |
||||||
|
{ |
||||||
|
public $driverName = 'pgsql'; |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\pgsql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group pgsql |
||||||
|
*/ |
||||||
|
class BatchQueryResultTest extends \yiiunit\framework\db\BatchQueryResultTest |
||||||
|
{ |
||||||
|
public $driverName = 'pgsql'; |
||||||
|
} |
@ -0,0 +1,24 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\pgsql; |
||||||
|
|
||||||
|
use yii\db\ColumnSchemaBuilder; |
||||||
|
use yii\db\Schema; |
||||||
|
|
||||||
|
/** |
||||||
|
* ColumnSchemaBuilderTest tests ColumnSchemaBuilder for Oracle |
||||||
|
* @group db |
||||||
|
* @group pgsql |
||||||
|
*/ |
||||||
|
class ColumnSchemaBuilderTest extends \yiiunit\framework\db\ColumnSchemaBuilderTest |
||||||
|
{ |
||||||
|
/** |
||||||
|
* @param string $type |
||||||
|
* @param integer $length |
||||||
|
* @return ColumnSchemaBuilder |
||||||
|
*/ |
||||||
|
public function getColumnSchemaBuilder($type, $length = null) |
||||||
|
{ |
||||||
|
return new ColumnSchemaBuilder($type, $length); |
||||||
|
} |
||||||
|
} |
@ -1,13 +1,12 @@ |
|||||||
<?php |
<?php |
||||||
namespace yii\tests\unit\framework\db\pgsql; |
|
||||||
|
|
||||||
use yiiunit\framework\db\CommandTest; |
namespace yii\tests\unit\framework\db\pgsql; |
||||||
|
|
||||||
/** |
/** |
||||||
* @group db |
* @group db |
||||||
* @group pgsql |
* @group pgsql |
||||||
*/ |
*/ |
||||||
class PostgreSQLCommandTest extends CommandTest |
class CommandTest extends \yiiunit\framework\db\CommandTest |
||||||
{ |
{ |
||||||
public $driverName = 'pgsql'; |
public $driverName = 'pgsql'; |
||||||
|
|
@ -1,14 +1,14 @@ |
|||||||
<?php |
<?php |
||||||
|
|
||||||
namespace yiiunit\framework\db\pgsql; |
namespace yiiunit\framework\db\pgsql; |
||||||
|
|
||||||
use yii\db\Transaction; |
use yii\db\Transaction; |
||||||
use yiiunit\framework\db\ConnectionTest; |
|
||||||
|
|
||||||
/** |
/** |
||||||
* @group db |
* @group db |
||||||
* @group pgsql |
* @group pgsql |
||||||
*/ |
*/ |
||||||
class PostgreSQLConnectionTest extends ConnectionTest |
class ConnectionTest extends \yiiunit\framework\db\ConnectionTest |
||||||
{ |
{ |
||||||
protected $driverName = 'pgsql'; |
protected $driverName = 'pgsql'; |
||||||
|
|
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\pgsql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group pgsql |
||||||
|
* @group validators |
||||||
|
*/ |
||||||
|
class ExistValidatorTest extends \yiiunit\framework\validators\ExistValidatorTest |
||||||
|
{ |
||||||
|
public $driverName = 'pgsql'; |
||||||
|
} |
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\pgsql; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group pgsql |
||||||
|
* @group validators |
||||||
|
*/ |
||||||
|
class UniqueValidatorTest extends \yiiunit\framework\validators\UniqueValidatorTest |
||||||
|
{ |
||||||
|
public $driverName = 'pgsql'; |
||||||
|
} |
@ -1,14 +1,13 @@ |
|||||||
<?php |
<?php |
||||||
namespace yiiunit\framework\db\sqlite; |
|
||||||
|
|
||||||
use yiiunit\framework\data\ActiveDataProviderTest; |
namespace yiiunit\framework\db\sqlite; |
||||||
|
|
||||||
/** |
/** |
||||||
* @group db |
* @group db |
||||||
* @group sqlite |
* @group sqlite |
||||||
* @group data |
* @group data |
||||||
*/ |
*/ |
||||||
class SqliteActiveDataProviderTest extends ActiveDataProviderTest |
class ActiveDataProviderTest extends \yiiunit\framework\data\ActiveDataProviderTest |
||||||
{ |
{ |
||||||
public $driverName = 'sqlite'; |
public $driverName = 'sqlite'; |
||||||
} |
} |
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\sqlite; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group sqlite |
||||||
|
* @group test |
||||||
|
*/ |
||||||
|
class ActiveFixtureTest extends \yiiunit\framework\test\ActiveFixtureTest |
||||||
|
{ |
||||||
|
public $driverName = 'sqlite'; |
||||||
|
} |
@ -1,13 +1,12 @@ |
|||||||
<?php |
<?php |
||||||
namespace yiiunit\framework\db\sqlite; |
|
||||||
|
|
||||||
use yiiunit\framework\db\ActiveRecordTest; |
namespace yiiunit\framework\db\sqlite; |
||||||
|
|
||||||
/** |
/** |
||||||
* @group db |
* @group db |
||||||
* @group sqlite |
* @group sqlite |
||||||
*/ |
*/ |
||||||
class SqliteActiveRecordTest extends ActiveRecordTest |
class ActiveRecordTest extends \yiiunit\framework\db\ActiveRecordTest |
||||||
{ |
{ |
||||||
protected $driverName = 'sqlite'; |
protected $driverName = 'sqlite'; |
||||||
} |
} |
@ -0,0 +1,12 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\sqlite; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group sqlite |
||||||
|
*/ |
||||||
|
class BatchQueryResultTest extends \yiiunit\framework\db\BatchQueryResultTest |
||||||
|
{ |
||||||
|
public $driverName = 'sqlite'; |
||||||
|
} |
@ -1,13 +1,12 @@ |
|||||||
<?php |
<?php |
||||||
namespace yiiunit\framework\db\sqlite; |
|
||||||
|
|
||||||
use yiiunit\framework\db\CommandTest; |
namespace yiiunit\framework\db\sqlite; |
||||||
|
|
||||||
/** |
/** |
||||||
* @group db |
* @group db |
||||||
* @group sqlite |
* @group sqlite |
||||||
*/ |
*/ |
||||||
class SqliteCommandTest extends CommandTest |
class CommandTest extends \yiiunit\framework\db\CommandTest |
||||||
{ |
{ |
||||||
protected $driverName = 'sqlite'; |
protected $driverName = 'sqlite'; |
||||||
|
|
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\sqlite; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group sqlite |
||||||
|
* @group validators |
||||||
|
*/ |
||||||
|
class ExistValidatorTest extends \yiiunit\framework\validators\ExistValidatorTest |
||||||
|
{ |
||||||
|
public $driverName = 'sqlite'; |
||||||
|
} |
@ -1,13 +1,12 @@ |
|||||||
<?php |
<?php |
||||||
namespace yiiunit\framework\db\sqlite; |
|
||||||
|
|
||||||
use yiiunit\framework\db\SchemaTest; |
namespace yiiunit\framework\db\sqlite; |
||||||
|
|
||||||
/** |
/** |
||||||
* @group db |
* @group db |
||||||
* @group sqlite |
* @group sqlite |
||||||
*/ |
*/ |
||||||
class SqliteSchemaTest extends SchemaTest |
class SchemaTest extends \yiiunit\framework\db\SchemaTest |
||||||
{ |
{ |
||||||
protected $driverName = 'sqlite'; |
protected $driverName = 'sqlite'; |
||||||
|
|
@ -0,0 +1,13 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace yiiunit\framework\db\sqlite; |
||||||
|
|
||||||
|
/** |
||||||
|
* @group db |
||||||
|
* @group sqlite |
||||||
|
* @group validators |
||||||
|
*/ |
||||||
|
class UniqueValidatorTest extends \yiiunit\framework\validators\UniqueValidatorTest |
||||||
|
{ |
||||||
|
public $driverName = 'sqlite'; |
||||||
|
} |
@ -1,12 +0,0 @@ |
|||||||
<?php |
|
||||||
namespace yiiunit\framework\validators\ExistValidatorDriverTests; |
|
||||||
|
|
||||||
use yiiunit\framework\validators\ExistValidatorTest; |
|
||||||
|
|
||||||
/** |
|
||||||
* @group validators |
|
||||||
*/ |
|
||||||
class ExistValidatorPostgresTest extends ExistValidatorTest |
|
||||||
{ |
|
||||||
protected $driverName = 'pgsql'; |
|
||||||
} |
|
@ -1,12 +0,0 @@ |
|||||||
<?php |
|
||||||
namespace yiiunit\framework\validators\ExistValidatorDriverTests; |
|
||||||
|
|
||||||
use yiiunit\framework\validators\ExistValidatorTest; |
|
||||||
|
|
||||||
/** |
|
||||||
* @group validators |
|
||||||
*/ |
|
||||||
class ExistValidatorSQliteTest extends ExistValidatorTest |
|
||||||
{ |
|
||||||
protected $driverName = 'sqlite'; |
|
||||||
} |
|
@ -1,13 +0,0 @@ |
|||||||
<?php |
|
||||||
|
|
||||||
namespace yiiunit\framework\validators\UniqueValidatorDriverTests; |
|
||||||
|
|
||||||
use yiiunit\framework\validators\UniqueValidatorTest; |
|
||||||
|
|
||||||
/** |
|
||||||
* @group validators |
|
||||||
*/ |
|
||||||
class UniqueValidatorPostgresTest extends UniqueValidatorTest |
|
||||||
{ |
|
||||||
protected $driverName = 'pgsql'; |
|
||||||
} |
|
@ -1,13 +0,0 @@ |
|||||||
<?php |
|
||||||
|
|
||||||
namespace yiiunit\framework\validators\UniqueValidatorDriverTests; |
|
||||||
|
|
||||||
use yiiunit\framework\validators\UniqueValidatorTest; |
|
||||||
|
|
||||||
/** |
|
||||||
* @group validators |
|
||||||
*/ |
|
||||||
class UniqueValidatorSQliteTest extends UniqueValidatorTest |
|
||||||
{ |
|
||||||
protected $driverName = 'sqlite'; |
|
||||||
} |
|
Loading…
Reference in new issue