mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Ensure that build includes extra classes
This commit is contained in:
parent
95bcac796a
commit
11e0a3de43
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user