Reactivating tests, fixing stuff

This commit is contained in:
Michael 2020-05-15 20:52:01 +00:00
parent 45f76db5d6
commit 1a9df263ed
3 changed files with 9 additions and 10 deletions

View File

@ -71,7 +71,7 @@ trait DatabaseTestTrait
}
foreach ($rows as $row) {
$dba->insert($tableName, $row);
$dba->insert($tableName, $row, true);
}
}
}

View File

@ -42,14 +42,13 @@ return [
'backend-ref' => 'unimported',
'data' => 'invalid data moved',
],
// skip everytime because of invalid storage and no data
[
'id' => 3,
'backend-class' => 'invalid!',
'backend-ref' => 'unimported',
'data' => '',
],
],
// @todo Check failing test because of this (never loaded) fixture
// [
// 'id' => 4,
// 'backend-class' => 'invalid!',
// 'backend-ref' => 'unimported',
// 'data' => '',
// ], ],
'storage' => [
[
'id' => 1,

View File

@ -70,7 +70,7 @@ class ApiTest extends DatabaseTest
/** @var Database $dba */
$dba = $this->dice->create(Database::class);
// test $dba->setTestmode(true);
$dba->setTestmode(true);
DBStructure::checkInitialValues();