bug fixes with unit testing

This commit is contained in:
Dennis Eichhorn 2021-05-28 22:22:44 +02:00
parent 96dee96aec
commit 73cee51f0f
2 changed files with 3 additions and 3 deletions

View File

@ -150,7 +150,7 @@
"foreignKey": "media_id"
},
"media_tag_dst": {
"name": "task_tag_dst",
"name": "media_tag_dst",
"type": "INT",
"null": false,
"foreignTable": "tag",

View File

@ -108,7 +108,7 @@ final class Installer extends InstallerAbstract
*
* @since 1.0.0
*/
private static function createCollection($dbPool, $data) : Collection
private static function createCollection(DatabasePool $dbPool, array $data) : Collection
{
if (!isset($data['path'])) {
$dirPath = __DIR__ . '/../../../Modules/Media/Files' . ($data['virtualPath'] ?? '/') . '/' . ($data['name'] ?? '');
@ -144,7 +144,7 @@ final class Installer extends InstallerAbstract
*
* @since 1.0.0
*/
private static function uploadMedia($dbPool, $data) : array
private static function uploadMedia(DatabasePool $dbPool, array $data) : array
{
$files = [];
foreach ($data['files'] as $file) {