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) { foreach ($rows as $row) {
$dba->insert($tableName, $row); $dba->insert($tableName, $row, true);
} }
} }
} }

View File

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

View File

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