Add valid storageId checks for duplication, since '' ne storageId.
This commit is contained in:
parent
5729a40ab2
commit
fa2e5c2c90
1 changed files with 2 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue