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:
parent
6ce9ce442d
commit
dc9e2a4e69
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue