Skip to content

Commit

Permalink
Remove src\TestSupport from yiisoft\db. (#420)
Browse files Browse the repository at this point in the history
* Remove src\TestSupport from yiisoft\db.
  • Loading branch information
terabytesoftw committed Dec 20, 2022
1 parent b0ca680 commit 10680f4
Show file tree
Hide file tree
Showing 23 changed files with 1,741 additions and 1,759 deletions.
1 change: 0 additions & 1 deletion psalm.xml
Expand Up @@ -9,7 +9,6 @@
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="src/TestSupport" />
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
Expand Down
4 changes: 1 addition & 3 deletions src/Driver/PDO/ConnectionPDO.php
Expand Up @@ -143,9 +143,7 @@ public function getActivePDO(string|null $sql = '', bool|null $forRead = null):
public function getLastInsertID(string $sequenceName = null): string
{
if ($this->isActive() && $this->pdo) {
return $this->pdo->lastInsertID(
$sequenceName === null ? null : $this->getQuoter()->quoteTableName($sequenceName)
);
return $this->pdo->lastInsertID($sequenceName ?? null);
}

throw new InvalidCallException('DB Connection is not active.');
Expand Down
164 changes: 0 additions & 164 deletions src/TestSupport/GetTablesAliasTestTrait.php

This file was deleted.

27 changes: 0 additions & 27 deletions src/TestSupport/Helper/DbHelper.php

This file was deleted.

0 comments on commit 10680f4

Please sign in to comment.