Add valid storageId checks for duplication, since '' ne storageId.

This commit is contained in:
Colin Kuskie 2009-04-13 16:38:26 +00:00
parent 5729a40ab2
commit fa2e5c2c90

View file

@ -346,8 +346,8 @@ ok($viewVariables->{hasPhotos}, 'viewVariables: hasPhotos: it has photos');
############################################################
$photoData = $story->getPhotoData;
$photoData->[0]->{storageId} = ignore();
$photoData->[1]->{storageId} = ignore();
$photoData->[0]->{storageId} = re('^[A-Za-z0-9_-]{22}$');
$photoData->[1]->{storageId} = re('^[A-Za-z0-9_-]{22}$');
my $newPhotoData = $story->duplicatePhotoData;
cmp_deeply(