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:
parent
dcfe9844ec
commit
b25cb7ab0f
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue