Added test for getTopKeywords
This commit is contained in:
parent
1e4bcbb3fb
commit
a09501b1c3
1 changed files with 6 additions and 0 deletions
|
|
@ -94,6 +94,12 @@ cmp_deeply(
|
|||
'... retrieving assets in more than one state'
|
||||
);
|
||||
|
||||
cmp_deeply(
|
||||
$keyword->getTopKeywords(),
|
||||
{ 'webgui' => '2' },
|
||||
'check getTopKeywords returns correctly'
|
||||
);
|
||||
|
||||
$keyword->deleteKeywordsForAsset($home);
|
||||
is(scalar(@{$keyword->getKeywordsForAsset({ asset=>$home, asArrayRef=>1})}), 0, "getKeywordsForAsset()");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue