fix undefined SapphireTest::using_temp_db()

see #33
This commit is contained in:
Werner M. Krauß 2017-10-10 13:27:20 +02:00
parent 8d25343c41
commit 12ac98ec1a

View File

@ -210,7 +210,7 @@ class SQLite3SchemaManager extends DBSchemaManager
{
$ok = true;
if (!SapphireTest::using_temp_db() && !self::$checked_and_repaired) {
if (SapphireTest::getTempDB()->isUsed() && !self::$checked_and_repaired) {
$this->alterationMessage("Checking database integrity", "repaired");
// Check for any tables with failed integrity