Skip to content

Commit 09c307a

Browse files
jankonasf3l1x
authored andcommitted

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Cases/DI/DbalExtension.platform.phpt

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use Contributte\Tester\Toolkit;
66
use Contributte\Tester\Utils\ContainerBuilder;
77
use Contributte\Tester\Utils\Neonkit;
88
use Doctrine\DBAL\Connection;
9-
use Doctrine\DBAL\Platforms\PostgreSQL100Platform;
9+
use Doctrine\DBAL\Platforms\MySQL80Platform;
1010
use Nette\DI\Compiler;
1111
use Nettrine\Cache\DI\CacheExtension;
1212
use Nettrine\DBAL\DI\DbalExtension;
@@ -32,15 +32,15 @@ Toolkit::test(function (): void {
3232
$compiler->addConfig(Neonkit::load(<<<'NEON'
3333
nettrine.dbal:
3434
connection:
35-
driver: pdo_pgsql
36-
serverVersion: 10.0
35+
driver: pdo_mysql
36+
serverVersion: '8.0.0'
3737
NEON
3838
));
3939
})->build();
4040

4141
/** @var Connection $connection */
4242
$connection = $container->getByType(Connection::class);
4343

44-
Assert::type(PostgreSQL100Platform::class, $connection->getDatabasePlatform());
44+
Assert::type(MySQL80Platform::class, $connection->getDatabasePlatform());
4545
Assert::falsey($connection->isConnected());
4646
});

0 commit comments

Comments
 (0)