BUGFIX: fixing unit tests so they don't delete existing data

This commit is contained in:
Julian Seidenberg 2012-07-30 12:57:27 +12:00
parent e0c028f87f
commit 4aba2774a7

View File

@ -18,7 +18,7 @@ class DMSTest extends FunctionalTest {
DMS::$dmsFolder = 'dms-assets-test-1234'; DMS::$dmsFolder = 'dms-assets-test-1234';
//clear out the test folder (in case a broken test doesn't delete it) //clear out the test folder (in case a broken test doesn't delete it)
$this->delete(BASE_PATH . DIRECTORY_SEPARATOR . DMS::$dmsFolder); $this->delete(BASE_PATH . DIRECTORY_SEPARATOR . 'dms-assets-test-1234');
} }
function tearDown() { function tearDown() {
@ -34,7 +34,7 @@ class DMSTest extends FunctionalTest {
} }
//delete the test folder after the test runs //delete the test folder after the test runs
$this->delete(BASE_PATH . DIRECTORY_SEPARATOR . DMS::$dmsFolder); $this->delete(BASE_PATH . DIRECTORY_SEPARATOR . 'dms-assets-test-1234');
//set the old DMS folder back again //set the old DMS folder back again
DMS::$dmsFolder = self::$dmsFolderOld; DMS::$dmsFolder = self::$dmsFolderOld;