mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-01-27 08:18:41 +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 = [];
|
||||
foreach ($created as $file) {
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ trait ApiControllerMediaTrait
|
|||
{
|
||||
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