diff --git a/tests/control/ModelAsControllerTest.php b/tests/control/ModelAsControllerTest.php index 7c1a382aa..9e4bc29db 100644 --- a/tests/control/ModelAsControllerTest.php +++ b/tests/control/ModelAsControllerTest.php @@ -5,6 +5,8 @@ */ class ModelAsControllerTest extends SapphireTest { + protected $usesDatabase = true; + public function testFindOldPage() { $page = new Page(); $page->Title = 'Test Page'; diff --git a/tests/fieldtypes/WidgetAreaEditorTest.php b/tests/fieldtypes/WidgetAreaEditorTest.php index 25b6ed645..503aa7537 100644 --- a/tests/fieldtypes/WidgetAreaEditorTest.php +++ b/tests/fieldtypes/WidgetAreaEditorTest.php @@ -9,6 +9,8 @@ class WidgetAreaEditorTest extends SapphireTest { */ protected $widgetToTest = 'WidgetAreaEditorTest_TestWidget'; + protected $usesDatabase = true; + function testFillingOneArea() { $oldRequest = $_REQUEST; diff --git a/tests/model/DatabaseTest.php b/tests/model/DatabaseTest.php index 4d58b5c17..a971567d8 100644 --- a/tests/model/DatabaseTest.php +++ b/tests/model/DatabaseTest.php @@ -5,6 +5,8 @@ */ class DatabaseTest extends SapphireTest { + protected $usesDatabase = true; + function testDontRequireField() { $conn = DB::getConn(); $this->assertArrayHasKey( diff --git a/tests/security/MemberAuthenticatorTest.php b/tests/security/MemberAuthenticatorTest.php index 6e6ad2615..b31250d66 100644 --- a/tests/security/MemberAuthenticatorTest.php +++ b/tests/security/MemberAuthenticatorTest.php @@ -4,6 +4,9 @@ * @subpackage tests */ class MemberAuthenticatorTest extends SapphireTest { + + protected $usesDatabase = true; + function testLegacyPasswordHashMigrationUponLogin() { $member = new Member(); $member->Email = 'test@test.com';