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

This reverts commit 1464328718.
This commit is contained in:
Fridolin Somers 2019-11-15 11:13:14 +01:00
parent 2e3c8148ea
commit 4fca42384a
1 changed files with 2 additions and 2 deletions

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