-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
CreateCommandTest.php
38 lines (30 loc) · 977 Bytes
/
CreateCommandTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
declare(strict_types=1);
namespace Yiisoft\Yii\Db\Migration\Tests\Driver\Mssql;
use Yiisoft\Yii\Db\Migration\Tests\Common\Command\AbstractCreateCommandTest;
use Yiisoft\Yii\Db\Migration\Tests\Support\Factory\MssqlFactory;
use Yiisoft\Yii\Db\Migration\Tests\Support\Helper\ContainerConfig;
/**
* @group mssql
*/
final class CreateCommandTest extends AbstractCreateCommandTest
{
public function setUp(): void
{
parent::setUp();
$this->container = MssqlFactory::createContainer();
$this->driverName = 'sqlsrv';
}
public function tearDown(): void
{
parent::tearDown();
MssqlFactory::clearDatabase($this->container);
}
public function testWithoutTablePrefix(): void
{
$containerConfig = new ContainerConfig();
$containerConfig->useTablePrefix = false;
$this->container = MssqlFactory::createContainer($containerConfig);
parent::testWithoutTablePrefix();
}
}