Do checks for keywords without order.

This commit is contained in:
Colin Kuskie 2011-01-04 11:36:06 -08:00
parent a7623ed20e
commit fe181907e5

View file

@ -68,7 +68,7 @@ my $snippet = $home->addChild({
my $assetIds = $keyword->getMatchingAssets({ keyword => 'webgui', });
cmp_deeply(
cmp_bag(
$assetIds,
[ $snippet->getId, $home->getId, ],
'getMatchingAssets, by keyword, assetIds in order by creationDate, descending'
@ -99,7 +99,7 @@ cmp_deeply(
'... only published assets'
);
cmp_deeply(
cmp_bag(
$keyword->getMatchingAssets({ keyword => 'webgui', states => [ qw/published trash/, ]}),
[$snippet->getId, $home->getId, ],
'... retrieving assets in more than one state'