Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 36a0e1b

Browse files
author
Michael Grauer
committed
BUG: refs #0380. Added getTempDirectory call to DatabaseSetup.php
1 parent eada0e4 commit 36a0e1b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

core/include.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
// midas core files
1414
require_once BASE_PATH . '/notification/MIDASNotifier.php';
1515
require_once BASE_PATH . '/notification/GlobalNotification.php';
16+
require_once BASE_PATH . '/core/GlobalComponent.php';
17+
require_once BASE_PATH . '/core/AppComponent.php';
1618
require_once BASE_PATH . '/core/GlobalController.php';
1719
require_once BASE_PATH . '/modules/GlobalModule.php';
18-
require_once BASE_PATH . '/core/GlobalComponent.php';
1920
require_once BASE_PATH . '/core/models/MIDASModel.php';
2021

2122
require_once BASE_PATH . '/core/models/MIDASDatabaseInterface.php';
@@ -29,7 +30,6 @@
2930
require_once BASE_PATH . '/core/ComponentLoader.php';
3031

3132
require_once BASE_PATH.'/core/AppController.php';
32-
require_once BASE_PATH.'/core/AppComponent.php';
3333
require_once BASE_PATH.'/core/AppForm.php';
3434
require_once BASE_PATH.'/core/models/AppModel.php';
3535
require_once BASE_PATH.'/core/models/AppDao.php';

tests/DatabaseSetup.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ function createDefaultAssetstore()
128128
$modelLoader->loadModel('Assetstore');
129129

130130
// path munging
131-
$testAssetstoreBase = BASE_PATH.'/tmp/misc/test';
131+
require_once BASE_PATH.'/core/controllers/components/UtilityComponent.php';
132+
$testAssetstoreBase = UtilityComponent::getTempDirectory().'/test/';
132133
$testAssetstoreBase = str_replace('tests/../', '', $testAssetstoreBase);
133134
$testAssetstoreBase = str_replace('//', '/', $testAssetstoreBase);
134135

0 commit comments

Comments
 (0)