Update this test to work with the new RSS Aspect.
This commit is contained in:
parent
d05d49d47a
commit
b6e980893e
1 changed files with 4 additions and 6 deletions
|
|
@ -32,7 +32,7 @@ use WebGUI::Asset::Wobject::Collaboration;
|
||||||
use WebGUI::Asset::Post;
|
use WebGUI::Asset::Post;
|
||||||
use WebGUI::Asset::Wobject::Layout;
|
use WebGUI::Asset::Wobject::Layout;
|
||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
use Test::More tests => 8; # increment this value for each test you create
|
use Test::More tests => 7; # increment this value for each test you create
|
||||||
|
|
||||||
my $session = WebGUI::Test->session;
|
my $session = WebGUI::Test->session;
|
||||||
|
|
||||||
|
|
@ -60,7 +60,7 @@ ok(defined $collab->get('groupToEditPost'), 'groupToEditPost field is defined');
|
||||||
|
|
||||||
# Verify sane defaults
|
# Verify sane defaults
|
||||||
cmp_ok($collab->get('groupToEditPost'), 'eq', $collab->get('groupIdEdit'), 'groupToEditPost defaults to groupIdEdit correctly');
|
cmp_ok($collab->get('groupToEditPost'), 'eq', $collab->get('groupIdEdit'), 'groupToEditPost defaults to groupIdEdit correctly');
|
||||||
is($collab->get('rssCapableRssLimit'), 10, 'rssCapableRssLimit is set to the default');
|
is($collab->get('itemsPerFeed'), 25, 'itemsPerFeed is set to the default');
|
||||||
|
|
||||||
# finally, add the post to the collaboration system
|
# finally, add the post to the collaboration system
|
||||||
my $props = {
|
my $props = {
|
||||||
|
|
@ -88,10 +88,8 @@ $post = $collab->addChild($props,
|
||||||
skipAutoCommitWorkflows => 1,
|
skipAutoCommitWorkflows => 1,
|
||||||
});
|
});
|
||||||
|
|
||||||
my $rssitems = $collab->getRssItems();
|
my $rssitems = $collab->getRssFeedItems();
|
||||||
is($rssitems, 2, 'rssitems set to number of posts added');
|
is(scalar@{ $rssitems }, 2, 'rssitems set to number of posts added');
|
||||||
|
|
||||||
is($collab->get('rssCapableRssLimit'), 10, 'rssCapableRssLimit is set to the default');
|
|
||||||
|
|
||||||
TODO: {
|
TODO: {
|
||||||
local $TODO = "Tests to make later";
|
local $TODO = "Tests to make later";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue