diff --git a/dev/SapphireTest.php b/dev/SapphireTest.php index 69ea3539b..4ca8a370e 100644 --- a/dev/SapphireTest.php +++ b/dev/SapphireTest.php @@ -801,6 +801,8 @@ class SapphireTest extends PHPUnit_Framework_TestCase { */ public function resetDBSchema($includeExtraDataObjects = false) { if(self::using_temp_db()) { + DataObject::reset(); + // clear singletons, they're caching old extension info which is used in DatabaseAdmin->doBuild() Injector::inst()->unregisterAllObjects();