diff --git a/tests/Db/Command/CommandTest.php b/tests/Db/Command/CommandTest.php index b1bef6fc9..c3205086a 100644 --- a/tests/Db/Command/CommandTest.php +++ b/tests/Db/Command/CommandTest.php @@ -4,12 +4,13 @@ namespace Yiisoft\Db\Tests\Db\Command; -use PHPUnit\Framework\Attributes\DataProvider; +use PHPUnit\Framework\Attributes\DataProviderExternal; use Yiisoft\Db\Constant\ColumnType; use Yiisoft\Db\Constant\PseudoType; use Yiisoft\Db\Exception\NotSupportedException; use Yiisoft\Db\Schema\Builder\ColumnInterface; use Yiisoft\Db\Tests\AbstractCommandTest; +use Yiisoft\Db\Tests\Provider\CommandProvider; use Yiisoft\Db\Tests\Support\Assert; use Yiisoft\Db\Tests\Support\DbHelper; use Yiisoft\Db\Tests\Support\TestTrait; @@ -460,7 +461,7 @@ public function testDropView(): void ); } - #[DataProvider('\Yiisoft\Db\Tests\Provider\CommandProvider::dropTable')] + #[DataProviderExternal(CommandProvider::class, 'dropTable')] public function testDropTable(string $expected, ?bool $ifExists, ?bool $cascade): void { $db = $this->getConnection();