|
4 | 4 |
|
5 | 5 | namespace Yiisoft\Db\Oracle\Tests;
|
6 | 6 |
|
| 7 | +use PHPUnit\Framework\Attributes\DataProviderExternal; |
7 | 8 | use Throwable;
|
8 | 9 | use Yiisoft\Db\Constant\ColumnType;
|
9 | 10 | use Yiisoft\Db\Exception\Exception;
|
10 | 11 | use Yiisoft\Db\Exception\InvalidArgumentException;
|
11 | 12 | use Yiisoft\Db\Exception\InvalidConfigException;
|
12 | 13 | use Yiisoft\Db\Exception\NotSupportedException;
|
13 | 14 | use Yiisoft\Db\Expression\ExpressionInterface;
|
| 15 | +use Yiisoft\Db\Oracle\Tests\Provider\QueryBuilderProvider; |
14 | 16 | use Yiisoft\Db\Oracle\Tests\Support\TestTrait;
|
15 | 17 | use Yiisoft\Db\Query\Query;
|
16 | 18 | use Yiisoft\Db\Query\QueryInterface;
|
@@ -672,9 +674,21 @@ public function testSelectScalar(array|bool|float|int|string $columns, string $e
|
672 | 674 | parent::testSelectScalar($columns, $expected);
|
673 | 675 | }
|
674 | 676 |
|
675 |
| - /** @dataProvider \Yiisoft\Db\Oracle\Tests\Provider\QueryBuilderProvider::buildColumnDefinition() */ |
| 677 | + #[DataProviderExternal(QueryBuilderProvider::class, 'buildColumnDefinition')] |
676 | 678 | public function testBuildColumnDefinition(string $expected, ColumnSchemaInterface|string $column): void
|
677 | 679 | {
|
678 | 680 | parent::testBuildColumnDefinition($expected, $column);
|
679 | 681 | }
|
| 682 | + |
| 683 | + #[DataProviderExternal(QueryBuilderProvider::class, 'prepareParam')] |
| 684 | + public function testPrepareParam(string $expected, mixed $value, int $type): void |
| 685 | + { |
| 686 | + parent::testPrepareParam($expected, $value, $type); |
| 687 | + } |
| 688 | + |
| 689 | + #[DataProviderExternal(QueryBuilderProvider::class, 'prepareValue')] |
| 690 | + public function testPrepareValue(string $expected, mixed $value): void |
| 691 | + { |
| 692 | + parent::testPrepareValue($expected, $value); |
| 693 | + } |
680 | 694 | }
|
0 commit comments