]> git.koha-community.org Git - koha.git/commit
Bug 14321: Introduce Koha::Upload
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 30 Jul 2015 17:19:44 +0000 (19:19 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 25 Sep 2015 15:02:51 +0000 (12:02 -0300)
commitba62a7ef24c9886d15bdc7d526ee92518bffc6f4
tree417742756f4a2990a9ce5649c2499e4cd76c9104
parentd94251e017703719c904c66e198bba360f6f9525
Bug 14321: Introduce Koha::Upload

This patch introduces Koha::Upload. It will replace the modules
C4::UploadedFile.pm and the new C4::UploadedFiles.pm (from BZ 6874).
It also includes a new unit test.

NOTE: This unit test will replace the test for UploadedFiles.pm. It will no
longer use dependency Test::CGI::Multipart. We are now mocking CGI and its
hook to achieve the same result.

Test plan:
[1] Run t/db_dependent/Upload.t.
    Note that if you see a WARNING, you will still need to add an entry
    upload_path to your koha-conf.xml. Or you need to give write
    permission to your Koha instance user for that folder.

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Upload.pm [new file with mode: 0644]
t/db_dependent/Upload.t [new file with mode: 0644]