Bug 19420: (QA Follow-up) Fix test, correct POD

The test needs the code level in the error hash now.
And POD is adjusted accordingly.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Marcel de Rooy 2017-11-03 10:19:57 +01:00 committed by Jonathan Druart
parent dcfe9844ec
commit b25cb7ab0f
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ sub result {
=head2 err
Returns hash with errors in format { file => err, ... }
Returns hashref with errors in format { file => { code => err }, ... }
Undefined if there are no errors.
=cut

View File

@ -145,7 +145,7 @@ subtest 'Add same file in same category' => sub {
is( $upl->count, 0, 'Upload 4 failed as expected' );
is( $upl->result, undef, 'Result is undefined' );
my $e = $upl->err;
is( $e->{file2}, 1, "Errcode 1 [already exists] reported" );
is( $e->{file2}->{code}, 1, "Errcode 1 [already exists] reported" );
};
subtest 'Test delete via UploadedFile as well as UploadedFiles' => sub {