Add an explicit test for getThumbnailUrl and non-image files (like a PDF)
This commit is contained in:
parent
927b986795
commit
1fa03c3ad8
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue