X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2FItemType.t;h=87e090e2c63560228c18ec418e936cc36f070cb9;hb=bf79b889f05937d5039c3246913c46c99ea3c928;hp=476ca198e1c79e099c1b7bd68f7a0dd224b5d143;hpb=b592d340af8b38f3a420095226b8117085e66574;p=koha.git diff --git a/t/ItemType.t b/t/ItemType.t index 476ca198e1..87e090e2c6 100755 --- a/t/ItemType.t +++ b/t/ItemType.t @@ -1,6 +1,5 @@ #!/usr/bin/perl # -# This Koha test module is a stub! # Add more tests here!!! use strict; @@ -33,7 +32,15 @@ my $itemtypes = [ [ 'CD', 'CDRom', 0, 0, '', '' ] ]; +my $itemtypes_empty = [ + [ + 'itemtype', 'description', 'rentalcharge', 'notforloan', + 'imageurl', 'summary' + ], +]; + my $dbh = C4::Context->dbh(); +$dbh->{mock_add_resultset} = $itemtypes_empty; my @itemtypes = C4::ItemType->all(); is( @itemtypes, 0, 'Testing all itemtypes is empty' );