BUG Ensure that build includes extra classes

This commit is contained in:
Damian Mooyman 2018-06-18 17:34:05 +12:00 committed by Daniel Hensby
parent 95bcac796a
commit 11e0a3de43
No known key found for this signature in database
GPG Key ID: D8DEBC4C8E7BC8B9

View File

@ -31,7 +31,14 @@ class FixtureTestState implements TestState
}
$tmpDB = $test::tempDB();
if (!$tmpDB->isUsed()) {
// Build base db
$tmpDB->build();
// Reset schema
$extraObjects = $test->getExtraDataObjects();
if ($extraObjects) {
$tmpDB->resetDBSchema($extraObjects);
}
}
DataObject::singleton()->flushCache();