Add tests that _really_ check for duplicated storage locations.

This commit is contained in:
Colin Kuskie 2009-04-13 16:36:37 +00:00
parent ec4713855a
commit 5729a40ab2

View file

@ -20,7 +20,7 @@ use Test::More; # increment this value for each test you create
use Test::Deep;
use Data::Dumper;
my $tests = 38;
my $tests = 40;
plan tests => 1
+ $tests
;
@ -356,6 +356,9 @@ cmp_deeply(
'duplicatePhotoData: checking JSON data minus storage locations'
);
isnt($newPhotoData->[0]->{storageId}, $photoData->[0]->{storageId}, '... and storage 0 is duplicated');
isnt($newPhotoData->[1]->{storageId}, $photoData->[1]->{storageId}, '... and storage 1 is duplicated');
WebGUI::Storage->get($session, $newPhotoData->[0]->{storageId})->delete;
WebGUI::Storage->get($session, $newPhotoData->[1]->{storageId})->delete;