[Koha-bugs] [Bug 22644] Some tests in Upload.t are not testing the right thing
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon May 13 14:52:41 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22644
--- Comment #3 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
162 my $delete = Koha::UploadedFiles->search({ id => $id })->delete;
163 isnt( $delete, "0E0", 'Delete successful' );
164 isnt( -e $path, 1, 'File no longer found after delete' );
We are testing that the file has been deleted, but it never existed. Those
tests do not test the whole purpose of the uploaded files.
Moreover the new tests I have tried to write for bug 22508 are failing, because
of this behavior.
So, IMO, there is a real need here.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list