diff --git a/src/Dev/State/FixtureTestState.php b/src/Dev/State/FixtureTestState.php index 0272ebfc4..a4df4d513 100644 --- a/src/Dev/State/FixtureTestState.php +++ b/src/Dev/State/FixtureTestState.php @@ -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();