Add feed support to StoryTopic.
This commit is contained in:
parent
070df97708
commit
f2451e2f7e
2 changed files with 66 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ my $session = WebGUI::Test->session;
|
|||
#----------------------------------------------------------------------------
|
||||
# Tests
|
||||
|
||||
my $tests = 17;
|
||||
my $tests = 18;
|
||||
plan tests => 1 + $tests;
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
|
@ -273,6 +273,43 @@ cmp_deeply(
|
|||
);
|
||||
$topic->{_exportMode} = 0;
|
||||
|
||||
################################################################
|
||||
#
|
||||
# getRssFeedItems
|
||||
#
|
||||
################################################################
|
||||
|
||||
$topic->update({
|
||||
storiesPer => 3,
|
||||
});
|
||||
cmp_deeply(
|
||||
$topic->getRssFeedItems(),
|
||||
[
|
||||
{
|
||||
title => 'bogs',
|
||||
description => ignore(),
|
||||
'link' => ignore(),
|
||||
date => ignore(),
|
||||
author => ignore(),
|
||||
},
|
||||
{
|
||||
title => 'red',
|
||||
description => ignore(),
|
||||
'link' => ignore(),
|
||||
date => ignore(),
|
||||
author => ignore(),
|
||||
},
|
||||
{
|
||||
title => 'brooks',
|
||||
description => ignore(),
|
||||
'link' => ignore(),
|
||||
date => ignore(),
|
||||
author => ignore(),
|
||||
},
|
||||
],
|
||||
'rssFeedItems'
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue