Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
use Rector\Set\ValueObject\LevelSetList;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->disableParallel();

$rectorConfig->paths([
__DIR__ . '/src',
__DIR__ . '/tests',
Expand Down
47 changes: 3 additions & 44 deletions tests/Provider/CommandProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,59 +4,18 @@

namespace Yiisoft\Db\Sqlite\Tests\Provider;

use Yiisoft\Db\Exception\Exception;
use Yiisoft\Db\Exception\InvalidConfigException;
use Yiisoft\Db\Sqlite\Tests\Support\TestTrait;
use Yiisoft\Db\Tests\Provider\BaseCommandProvider;
use Yiisoft\Db\Tests\Provider\AbstractCommandProvider;

final class CommandProvider
final class CommandProvider extends AbstractCommandProvider
{
use TestTrait;

/**
* @throws Exception
* @throws InvalidConfigException
*/
public function batchInsert(): array
{
$baseCommandProvider = new BaseCommandProvider();

$batchInsertSql = $baseCommandProvider->batchInsert($this->getConnection());
$batchInsertSql = parent::batchInsert();
unset($batchInsertSql['wrongBehavior']);

return $batchInsertSql;
}

/**
* @throws Exception
* @throws InvalidConfigException
*/
public function rawSql(): array
{
$baseCommandProvider = new BaseCommandProvider();

return $baseCommandProvider->rawSql($this->getConnection());
}

/**
* @throws Exception
* @throws InvalidConfigException
*/
public function update(): array
{
$baseCommandProvider = new BaseCommandProvider();

return $baseCommandProvider->update($this->getConnection());
}

/**
* @throws Exception
* @throws InvalidConfigException
*/
public function upsert(): array
{
$baseCommandProvider = new BaseCommandProvider();

return $baseCommandProvider->upsert($this->getConnection());
}
}