1
0
Fork 0
mirror of synced 2025-04-03 05:13:37 +03:00

Fixed the test expectations for the DatabaseDriver

This commit is contained in:
Christophe Coevoet 2014-08-27 14:00:34 +02:00
parent 00eb0d3b67
commit f0c02bb6d9

View file

@ -189,14 +189,14 @@ class DatabaseDriverTest extends DatabaseDriverTestCase
if ( ! $this->_em->getConnection()->getDatabasePlatform() instanceof PostgreSqlPlatform AND if ( ! $this->_em->getConnection()->getDatabasePlatform() instanceof PostgreSqlPlatform AND
! $this->_em->getConnection()->getDatabasePlatform() instanceof SQLServerPlatform) { ! $this->_em->getConnection()->getDatabasePlatform() instanceof SQLServerPlatform) {
$this->assertArrayHasKey('columnUnsigned', $metadata->fieldMappings); $this->assertArrayHasKey('columnUnsigned', $metadata->fieldMappings);
$this->assertTrue($metadata->fieldMappings['columnUnsigned']['unsigned']); $this->assertTrue($metadata->fieldMappings['columnUnsigned']['options']['unsigned']);
} }
$this->assertArrayHasKey('columnComment', $metadata->fieldMappings); $this->assertArrayHasKey('columnComment', $metadata->fieldMappings);
$this->assertEquals('test_comment', $metadata->fieldMappings['columnComment']['comment']); $this->assertEquals('test_comment', $metadata->fieldMappings['columnComment']['options']['comment']);
$this->assertArrayHasKey('columnDefault', $metadata->fieldMappings); $this->assertArrayHasKey('columnDefault', $metadata->fieldMappings);
$this->assertEquals('test_default', $metadata->fieldMappings['columnDefault']['default']); $this->assertEquals('test_default', $metadata->fieldMappings['columnDefault']['options']['default']);
$this->assertArrayHasKey('columnDecimal', $metadata->fieldMappings); $this->assertArrayHasKey('columnDecimal', $metadata->fieldMappings);
$this->assertEquals(4, $metadata->fieldMappings['columnDecimal']['precision']); $this->assertEquals(4, $metadata->fieldMappings['columnDecimal']['precision']);