diff --git a/tests/Cases/DI/DbalExtension.phpt b/tests/Cases/DI/DbalExtension.phpt new file mode 100644 index 0000000..0e06780 --- /dev/null +++ b/tests/Cases/DI/DbalExtension.phpt @@ -0,0 +1,34 @@ +withCompiler(static function (Compiler $compiler): void { + $compiler->addExtension('nettrine.dbal', new DbalExtension()); + $compiler->addConfig(Neonkit::load( + <<<'NEON' + nettrine.dbal: + connections: + default: + driver: pdo_sqlite + password: test + user: test + path: ":memory:" + NEON + )); + })->build(); + + Assert::type(Connection::class, $container->getByName('nettrine.dbal.connections.default.connection')); +});