Working : FileManager :Add some more unit tests

This commit is contained in:
gmorel
2013-09-24 14:50:42 +02:00
parent 430e18e4e2
commit 71888e68aa
3 changed files with 483 additions and 2 deletions

View File

@@ -107,7 +107,7 @@ class FileController extends BaseAdminController
return new ResponseRest($message, 'text', 415);
}
$parentModel = $fileManager->getParentFIleModel($parentType, $parentId);
$parentModel = $fileManager->getParentFileModel($parentType, $parentId);
$imageModel = $fileManager->getImageModel($parentType);
if ($parentModel === null || $imageModel === null || $fileBeingUploaded === null) {