diff --git a/t/Storage/Image.t b/t/Storage/Image.t index aae27dddd..c1292d8e5 100644 --- a/t/Storage/Image.t +++ b/t/Storage/Image.t @@ -65,7 +65,7 @@ my $extensionTests = [ }, ]; -plan tests => 54 + scalar @{ $extensionTests }; # increment this value for each test you create +plan tests => 55 + scalar @{ $extensionTests }; # increment this value for each test you create my $session = WebGUI::Test->session; @@ -210,6 +210,8 @@ is($WebGUI::Test::logger_error, q/Can't find a thumbnail for a file named 'round is($thumbStore->getThumbnailUrl('square.png'), $thumbStore->getUrl('thumb-square.png'), 'getThumbnailUrl returns the correct url'); +is($thumbStore->getThumbnailUrl('file.pdf'), '', '... return empty string for a file that is not an image'); + #################################################### # # adjustMaxImageSize