Revert "Bug 21987: (RM follow-up) Add text for simple tests"

This reverts commit 1464328718.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2019-11-04 13:21:09 +00:00
parent 6ce9ce442d
commit dc9e2a4e69
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -20,7 +20,7 @@ my $koha_logo = GD::Image->new($path);
C4::Images::PutImage( $biblio->biblionumber, $koha_logo );
my @imagenumbers = C4::Images::ListImagesForBiblio( $biblio->biblionumber );
is( scalar(@imagenumbers), 1, "The image has been added to the biblio" );
is( scalar(@imagenumbers), 1 );
my $image = C4::Images::RetrieveImage($imagenumbers[0]);
ok( length $image->{thumbnail} < length $image->{imagefile}, 'thumbnail should be shorter than the original image' );
}
@ -32,7 +32,7 @@ my $koha_logo = GD::Image->new($path);
C4::Images::PutImage( $biblio->biblionumber, $koha_logo, 'replace' );
my @imagenumbers = C4::Images::ListImagesForBiblio( $biblio->biblionumber );
is( scalar(@imagenumbers), 1 , "The image replaced the previous image on the biblio" );
is( scalar(@imagenumbers), 1 );
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