Fix importing an Archive in default order. Update the test to now explicitly test for archive order. Fixes bug #11866.
This commit is contained in:
parent
317a4d759a
commit
b4c20a1203
4 changed files with 12 additions and 8 deletions
|
|
@ -136,9 +136,9 @@ $album->addArchive( WebGUI::Test->getTestCollateralPath('gallery_archive_sorting
|
|||
# Get all children
|
||||
my $images = $album->getLineage(['descendants'], { returnObjects => 1 });
|
||||
# Check order
|
||||
cmp_bag(
|
||||
cmp_deeply(
|
||||
[ map { $_->get("filename") } @{ $images } ],
|
||||
[ "photo1.jpg", "photo4.jpg", "photo3.jpg", "photo2.jpg", ],
|
||||
[ "photo3.jpg", "photo2.jpg", "photo4.jpg", "photo1.jpg", ],
|
||||
"Photos sorted by file order (all files exist)"
|
||||
);
|
||||
# Empty gallery album
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue