From c49b454d4b1ebfdf16c4f587ff1f8929ee5a2244 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 27 Jan 2010 07:04:20 +0000 Subject: [PATCH] MINOR: Make SecurityDefaultAdminTest when you run it by itself. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@97652 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/security/SecurityDefaultAdminTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/security/SecurityDefaultAdminTest.php b/tests/security/SecurityDefaultAdminTest.php index f8015d9f4..b5a695d10 100644 --- a/tests/security/SecurityDefaultAdminTest.php +++ b/tests/security/SecurityDefaultAdminTest.php @@ -2,11 +2,12 @@ class SecurityDefaultAdminTest extends SapphireTest { function setUp() { + parent::setUp(); + // TODO Workaround to force database clearing with no fixture present, // and avoid sideeffects from other tests + if(!self::using_temp_db()) self::create_temp_db(); self::empty_temp_db(); - - parent::setUp(); } function testCheckDefaultAdmin() {