mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge branch '3.2' into 3.3
This commit is contained in:
commit
2ae2675a47
@ -226,13 +226,9 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
|
||||
$this->model = DataModel::inst();
|
||||
|
||||
// Set up fixture
|
||||
if($fixtureFile || $this->usesDatabase || !self::using_temp_db()) {
|
||||
if(substr(DB::get_conn()->getSelectedDatabase(), 0, strlen($prefix) + 5)
|
||||
!= strtolower(sprintf('%stmpdb', $prefix))) {
|
||||
|
||||
//echo "Re-creating temp database... ";
|
||||
if($fixtureFile || $this->usesDatabase) {
|
||||
if (!self::using_temp_db()) {
|
||||
self::create_temp_db();
|
||||
//echo "done.\n";
|
||||
}
|
||||
|
||||
singleton('DataObject')->flushCache();
|
||||
|
Loading…
Reference in New Issue
Block a user