test for getStaticKeywordUrl
This commit is contained in:
parent
08c033b2c5
commit
7b3ab664fe
1 changed files with 12 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ $canPostMaker->prepare({
|
||||||
fail => [1, $reader ],
|
fail => [1, $reader ],
|
||||||
});
|
});
|
||||||
|
|
||||||
my $tests = 36
|
my $tests = 37
|
||||||
+ $canPostMaker->plan
|
+ $canPostMaker->plan
|
||||||
;
|
;
|
||||||
plan tests => 1
|
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->getChildCount, 1, 'The folder has 1 child...');
|
||||||
is($folder->getFirstChild->getTitle, 'First Story', '... and it is the correct 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
|
# viewTemplateVariables
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue