diff --git a/tests/unit/js/mocks/OC.js b/tests/unit/js/mocks/OC.js index f88dc9e7..a2f8b51c 100644 --- a/tests/unit/js/mocks/OC.js +++ b/tests/unit/js/mocks/OC.js @@ -54,7 +54,7 @@ function escapeHTML(s) { * @deprecated use Files.getDownloadURL() instead */ function fileDownloadPath(dir, file) { - return OC.filePath('files', 'ajax', 'download.php')+'?files='+encodeURIComponent(file)+'&dir='+encodeURIComponent(dir); + return OCA.Files.Files.getDownloadUrl(file, dir); } /** @namespace */