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
c141978be1
commit
4899bcd7c4
4 changed files with 12 additions and 8 deletions
|
|
@ -134,9 +134,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