From 2ff50a6fe96de4256f016fd605853567731b96ef Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 12 Apr 2010 23:08:35 +0000 Subject: [PATCH] MINOR: Make SecurityDefaultAdminTest when you run it by itself. (from r97652) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102522 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() {