Fix the AssetLineage test that I broke.
This commit is contained in:
parent
7e7bc9ca20
commit
0f32e9b6fb
1 changed files with 3 additions and 6 deletions
|
|
@ -166,17 +166,15 @@ cmp_bag(
|
||||||
);
|
);
|
||||||
|
|
||||||
$ids = getListFromIterator($folder->getLineageIterator(['self','descendants']));
|
$ids = getListFromIterator($folder->getLineageIterator(['self','descendants']));
|
||||||
unshift @snipIds, $folder->getId;
|
|
||||||
cmp_bag(
|
cmp_bag(
|
||||||
\@snipIds,
|
[$folder->getId, @snipIds],
|
||||||
$ids,
|
$ids,
|
||||||
'getLineageIterator: get descendants of folder and self'
|
'getLineageIterator: get descendants of folder and self'
|
||||||
);
|
);
|
||||||
shift @snipIds;
|
|
||||||
|
|
||||||
$ids = getListFromIterator($folder->getLineageIterator(['self','children']));
|
$ids = getListFromIterator($folder->getLineageIterator(['self','children']));
|
||||||
cmp_bag(
|
cmp_bag(
|
||||||
\@snipIds,
|
[$folder->getId, @snipIds],
|
||||||
$ids,
|
$ids,
|
||||||
'getLineageIterator: descendants == children if there are no grandchildren'
|
'getLineageIterator: descendants == children if there are no grandchildren'
|
||||||
);
|
);
|
||||||
|
|
@ -190,12 +188,11 @@ cmp_bag(
|
||||||
|
|
||||||
$ids = getListFromIterator($topFolder->getLineageIterator(['self','descendants']));
|
$ids = getListFromIterator($topFolder->getLineageIterator(['self','descendants']));
|
||||||
cmp_bag(
|
cmp_bag(
|
||||||
[$topFolder->getId, @snipIds, $folder2->getId, $snippet2->getId],
|
[$topFolder->getId, $folder->getId, @snipIds, $folder2->getId, $snippet2->getId],
|
||||||
$ids,
|
$ids,
|
||||||
'getLineageIterator: descendants of topFolder',
|
'getLineageIterator: descendants of topFolder',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
####################################################
|
####################################################
|
||||||
#
|
#
|
||||||
# getFirstChild
|
# getFirstChild
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue