Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUG Reset DataObject caches in SapphireTest->resetDBSchema()

This became a problem with fdcd7a2 where $custom_database_fields
were cached, but never reset. It lead to extensions not applying
correctly in SapphireTest->setUpOnce().
  • Loading branch information...
commit 453d04e4ba05bec467a2dcea139e75edb1abcab5 1 parent a3cd7dd
Ingo Schommer chillu authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  dev/SapphireTest.php
2  dev/SapphireTest.php
View
@@ -801,6 +801,8 @@ public static function delete_all_temp_dbs() {
*/
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();
Please sign in to comment.
Something went wrong with that request. Please try again.