Remove dead code from OrmFunctionalTestCase
This commit is contained in:
parent
7c6c5d87c8
commit
942bb6cb1f
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user