From a09501b1c38868349e2acabb398769015d140392 Mon Sep 17 00:00:00 2001 From: khenn Date: Fri, 30 Oct 2009 17:02:24 -0500 Subject: [PATCH] Added test for getTopKeywords --- t/Keyword.t | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/t/Keyword.t b/t/Keyword.t index 03c7e2a01..c5ea23482 100644 --- a/t/Keyword.t +++ b/t/Keyword.t @@ -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()");