Bug 28445: Add diag for failing test
Temporary patch to help trying to fix the following random error: # Failed test 'Item types should be sorted by description and an empty entries should be shown' # at t/db_dependent/Koha/UI/Form/Builder/Item.t line 121. # Structures begin differing at: # $got->[12] = 'Be9T9FH5aO' # $expected->[12] = 'REF' # Looks like you failed 1 test of 2. # Failed test 'itemtypes' # at t/db_dependent/Koha/UI/Form/Builder/Item.t line 130. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
ca179e808f
commit
c70de8c530
1 changed files with 4 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
|||
|
||||
use Modern::Perl;
|
||||
use Test::More tests => 7;
|
||||
use Data::Dumper qw( Dumper );
|
||||
use utf8;
|
||||
|
||||
use List::MoreUtils qw( uniq );
|
||||
|
@ -122,7 +123,9 @@ subtest 'authorised values' => sub {
|
|||
$itemtypes->as_list
|
||||
],
|
||||
"Item types should be sorted by description and an empty entries should be shown"
|
||||
);
|
||||
)
|
||||
or diag("Itemtypes details: ".Dumper($subfield->{marc_value}->{values}, [map { $_->itemtype } $itemtypes->as_list]));
|
||||
|
||||
is_deeply( $subfield->{marc_value}->{labels},
|
||||
{ map { $_->itemtype => $_->description } $itemtypes->as_list },
|
||||
'Labels should be correctly displayed'
|
||||
|
|
Loading…
Reference in a new issue