1
0
mirror of synced 2025-02-03 05:49:25 +03:00

Remove dead code from OrmFunctionalTestCase

This commit is contained in:
Luís Cobucci 2017-04-30 18:49:19 +02:00
parent 7c6c5d87c8
commit 942bb6cb1f
No known key found for this signature in database
GPG Key ID: EC61C5F01750ED3C

View File

@ -616,14 +616,8 @@ abstract class OrmFunctionalTestCase extends OrmTestCase
{ {
$this->setUpDBALTypes(); $this->setUpDBALTypes();
$forceCreateTables = false;
if ( ! isset(static::$_sharedConn)) { if ( ! isset(static::$_sharedConn)) {
static::$_sharedConn = TestUtil::getConnection(); static::$_sharedConn = TestUtil::getConnection();
if (static::$_sharedConn->getDriver() instanceof SqliteDriver) {
$forceCreateTables = true;
}
} }
if (isset($GLOBALS['DOCTRINE_MARK_SQL_LOGS'])) { if (isset($GLOBALS['DOCTRINE_MARK_SQL_LOGS'])) {
@ -642,7 +636,7 @@ abstract class OrmFunctionalTestCase extends OrmTestCase
$classes = []; $classes = [];
foreach ($this->_usedModelSets as $setName => $bool) { foreach ($this->_usedModelSets as $setName => $bool) {
if ( ! isset(static::$_tablesCreated[$setName])/* || $forceCreateTables*/) { if ( ! isset(static::$_tablesCreated[$setName])) {
foreach (static::$_modelSets[$setName] as $className) { foreach (static::$_modelSets[$setName] as $className) {
$classes[] = $this->_em->getClassMetadata($className); $classes[] = $this->_em->getClassMetadata($className);
} }