C4::Images::PutImage( $biblio->biblionumber, $koha_logo );
my @imagenumbers = C4::Images::ListImagesForBiblio( $biblio->biblionumber );
- is( scalar(@imagenumbers), 1 );
+ is( scalar(@imagenumbers), 1, "The image has been added to the biblio" );
my $image = C4::Images::RetrieveImage($imagenumbers[0]);
ok( length $image->{thumbnail} < length $image->{imagefile}, 'thumbnail should be shorter than the original image' );
}
C4::Images::PutImage( $biblio->biblionumber, $koha_logo, 'replace' );
my @imagenumbers = C4::Images::ListImagesForBiblio( $biblio->biblionumber );
- is( scalar(@imagenumbers), 1 );
+ is( scalar(@imagenumbers), 1 , "The image replaced the previous image on the biblio" );
my $image = C4::Images::RetrieveImage($imagenumbers[0]);
ok( length $image->{thumbnail} > length $image->{imagefile}, 'thumbnail should be bigger than the original image.' );
# Actually it should not be bigger, but we cheat with the trueColor flag