diff --git a/tests/DMSVersioningTest.php b/tests/DMSVersioningTest.php index 2971320..f3f02af 100755 --- a/tests/DMSVersioningTest.php +++ b/tests/DMSVersioningTest.php @@ -25,8 +25,6 @@ class DMSVersioningTest extends SapphireTest { } function tearDown() { - parent::tearDown(); - $d = DataObject::get("DMSDocument"); foreach($d as $d1) { $d1->delete(); @@ -39,6 +37,8 @@ class DMSVersioningTest extends SapphireTest { //delete the test folder after the test runs $this->delete(BASE_PATH . DIRECTORY_SEPARATOR . 'dms-assets-test-versions'); + parent::tearDown(); + //set the old DMS folder back again DMS::$dmsFolder = self::$dmsFolderOld; DMS::$dmsFolderSize = self::$dmsFolderSizeOld;