Add tests that _really_ check for duplicated storage locations.
This commit is contained in:
parent
ec4713855a
commit
5729a40ab2
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue