/** * @param string $expectedSql * @param array $fieldDef * @throws \Doctrine\ORM\ORMException * @dataProvider varcharTypeDeclarationProvider */ public function testVarcharTypeDeclarationSQLSnippet($expectedSql, array $fieldDef) { $em = Bootstrap::getEntityManager(); /** @var DB2IBMiPlatform $platform */ $platform = $em->getConnection()->getDatabasePlatform(); self::assertSame($expectedSql, $platform->getVarcharTypeDeclarationSQL($fieldDef)); }
public function testCorrectConnectionClassIsUsed() { $em = Bootstrap::getEntityManager(); $connection = $em->getConnection()->getWrappedConnection(); self::assertInstanceOf(DB2IBMiConnection::class, $connection); }