Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad933e9

Browse files
committed
Revert "Remove src\TestSupport from yiisoft\db."
This reverts commit 30411a8.
1 parent 885dd66 commit ad933e9

13 files changed

+402
-334
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"ext-mbstring": "*",
2424
"ext-pdo": "*",
2525
"yiisoft/arrays": "^2.0",
26-
"yiisoft/db": "dev-remove-test-support as 3.0@dev",
26+
"yiisoft/db": "^3.0@dev",
2727
"yiisoft/strings": "^2.0"
2828
},
2929
"require-dev": {

tests/BatchQueryResultTest.php

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
/**
1111
* @group sqlite
12-
*
13-
* @psalm-suppress PropertyNotSetInConstructor
1412
*/
1513
final class BatchQueryResultTest extends CommonBatchQueryResultTest
1614
{

tests/Builder/InconditionBuilderTest.php

-45
This file was deleted.

tests/CommandPDOTest.php

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
/**
1111
* @group sqlite
12-
*
13-
* @psalm-suppress PropertyNotSetInConstructor
1412
*/
1513
final class CommandPDOTest extends CommonCommandPDOTest
1614
{

tests/CommandTest.php

+2-16
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
/**
1818
* @group sqlite
1919
*
20+
* @psalm-suppress MixedMethodCall
2021
* @psalm-suppress PropertyNotSetInConstructor
2122
*/
2223
final class CommandTest extends CommonCommandTest
@@ -83,9 +84,6 @@ public function testAddDefaultValue(): void
8384

8485
/**
8586
* @dataProvider \Yiisoft\Db\Tests\Provider\CommandProvider::addForeignKey()
86-
*
87-
* @throws Exception
88-
* @throws Throwable
8987
*/
9088
public function testAddForeignKey(
9189
string $name,
@@ -102,9 +100,6 @@ public function testAddForeignKey(
102100

103101
/**
104102
* @dataProvider \Yiisoft\Db\Tests\Provider\CommandProvider::addPrimaryKey()
105-
*
106-
* @throws Exception
107-
* @throws Throwable
108103
*/
109104
public function testAddPrimaryKey(string $name, string $tableName, array|string $column): void
110105
{
@@ -116,9 +111,6 @@ public function testAddPrimaryKey(string $name, string $tableName, array|string
116111

117112
/**
118113
* @dataProvider \Yiisoft\Db\Tests\Provider\CommandProvider::addUnique()
119-
*
120-
* @throws Exception
121-
* @throws Throwable
122114
*/
123115
public function testAddUnique(string $name, string $tableName, array|string $column): void
124116
{
@@ -147,9 +139,6 @@ public function testAlterColumn(): void
147139

148140
/**
149141
* @dataProvider \Yiisoft\Db\Sqlite\Tests\Provider\CommandProvider::batchInsert()
150-
*
151-
* @throws Exception
152-
* @throws Throwable
153142
*/
154143
public function testBatchInsert(
155144
string $table,
@@ -454,9 +443,6 @@ public function testTruncateTable(): void
454443

455444
/**
456445
* @dataProvider \Yiisoft\Db\Sqlite\Tests\Provider\CommandProvider::update()
457-
*
458-
* @throws Exception
459-
* @throws Throwable
460446
*/
461447
public function testUpdate(
462448
string $table,
@@ -472,7 +458,7 @@ public function testUpdate(
472458
* @dataProvider \Yiisoft\Db\Sqlite\Tests\Provider\CommandProvider::upsert()
473459
*
474460
* @throws Exception
475-
* @throws Throwable
461+
* @throws InvalidConfigException
476462
*/
477463
public function testUpsert(array $firstData, array $secondData): void
478464
{

tests/ConnectionPDOTest.php

-113
This file was deleted.

0 commit comments

Comments
 (0)