fixed a bunch of GalleryAlbum/Photo tests

This commit is contained in:
Doug Bell 2007-12-26 00:39:08 +00:00
parent 6dfe05b119
commit af271b9f26
13 changed files with 225 additions and 248 deletions

View file

@ -18,6 +18,7 @@ use Scalar::Util qw( blessed );
use WebGUI::Test;
use WebGUI::Session;
use Test::More;
use Test::Deep;
use WebGUI::Asset::File::Image::Photo;
#----------------------------------------------------------------------------
@ -60,9 +61,9 @@ plan tests => 2;
$photo->setFile( WebGUI::Test->getTestCollateralPath('page_title.jpg') );
my $storage = $photo->getStorageLocation;
is_deeply(
$storage->getFiles, ['page_title.jpg'],
"Storage location contains only the file we added",
cmp_deeply(
$storage->getFiles, bag('page_title.jpg','1024x768.jpg'),
"Storage location contains the resolution file",
);
ok(