mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
BUGFIX: fixing unit tests so they don't delete existing data
This commit is contained in:
parent
e0c028f87f
commit
4aba2774a7
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user