mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-15 08:48:42 +00:00
fix unit tests
This commit is contained in:
parent
0796549cba
commit
6c68cb77cf
|
|
@ -569,7 +569,7 @@ final class ApiController extends Controller
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
$created = $this->createDbEntries($status, $request->header->account, $virtualPath, $request->getData('type') ?? '');
|
$created = $this->createDbEntries($status, $request->header->account, $virtualPath, $request->getData('type', 'int'));
|
||||||
|
|
||||||
$ids = [];
|
$ids = [];
|
||||||
foreach ($created as $file) {
|
foreach ($created as $file) {
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,7 @@ trait ApiControllerMediaTrait
|
||||||
{
|
{
|
||||||
self::assertEquals(
|
self::assertEquals(
|
||||||
[],
|
[],
|
||||||
$this->module->uploadFiles(['test'], ['test'], 1, '/test', '', '', '', '', 99)
|
$this->module->uploadFiles(['test'], ['test'], 1, '/test', '', null, '', '', 99)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Test Content
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Media/Collection Test 2
|
|
||||||
Loading…
Reference in New Issue
Block a user