diff --git a/src/ORM/DatabaseAdmin.php b/src/ORM/DatabaseAdmin.php index b795690ee..30ca53b25 100644 --- a/src/ORM/DatabaseAdmin.php +++ b/src/ORM/DatabaseAdmin.php @@ -314,7 +314,7 @@ class DatabaseAdmin extends Controller } // Check if this class should be excluded as per testing conventions - $SNG = singleton($dataClass); + $SNG = new $dataClass([], DataObject::CREATE_SINGLETON); if (!$testMode && $SNG instanceof TestOnly) { continue; }