test for getStaticKeywordUrl

This commit is contained in:
Colin Kuskie 2009-04-17 17:20:12 +00:00
parent 08c033b2c5
commit 7b3ab664fe

View file

@ -58,7 +58,7 @@ $canPostMaker->prepare({
fail => [1, $reader ],
});
my $tests = 36
my $tests = 37
+ $canPostMaker->plan
;
plan tests => 1
@ -155,6 +155,17 @@ isa_ok($folder, 'WebGUI::Asset::Wobject::Folder', 'Folder was added to Archive')
is($folder->getChildCount, 1, 'The folder has 1 child...');
is($folder->getFirstChild->getTitle, 'First Story', '... and it is the correct child');
################################################################
#
# getKeywordStaticUrl
#
################################################################
##Note, this method depends heavily on the default installed language pack.
##Because of that, we'll only test for whether or not url->urlize is called.
is ($archive->getKeywordStaticUrl('camelCase'), 'keyword_camelcase.html', 'getKeywordStaticUrl returns a lower case keyword with _keyword.html appended');
################################################################
#
# viewTemplateVariables