Merge branch '3.1' into 3.2

This commit is contained in:
Daniel Hensby 2016-05-22 11:10:37 +01:00
commit f3cf55074f
No known key found for this signature in database
GPG Key ID: E38EC566FE29EB66

View File

@ -226,13 +226,9 @@ class SapphireTest extends PHPUnit_Framework_TestCase {
$this->model = DataModel::inst(); $this->model = DataModel::inst();
// Set up fixture // Set up fixture
if($fixtureFile || $this->usesDatabase || !self::using_temp_db()) { if($fixtureFile || $this->usesDatabase) {
if(substr(DB::get_conn()->getSelectedDatabase(), 0, strlen($prefix) + 5) if (!self::using_temp_db()) {
!= strtolower(sprintf('%stmpdb', $prefix))) {
//echo "Re-creating temp database... ";
self::create_temp_db(); self::create_temp_db();
//echo "done.\n";
} }
singleton('DataObject')->flushCache(); singleton('DataObject')->flushCache();