Set correct defaults for icalFeeds in existant calendars. Fixes bug #11005
This commit is contained in:
parent
7349cf52b8
commit
255abcdf97
3 changed files with 38 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ use Data::Dumper;
|
|||
use WebGUI::Asset::Wobject::Calendar;
|
||||
use WebGUI::Asset::Event;
|
||||
|
||||
plan tests => 14 + scalar @icalWrapTests;
|
||||
plan tests => 15 + scalar @icalWrapTests;
|
||||
|
||||
my $session = WebGUI::Test->session;
|
||||
|
||||
|
|
@ -434,6 +434,28 @@ cmp_deeply(
|
|||
'... end of day event in proper bin'
|
||||
);
|
||||
|
||||
######################################################################
|
||||
#
|
||||
# getFeeds
|
||||
#
|
||||
######################################################################
|
||||
|
||||
my $feedCal = $node->addChild({
|
||||
className => 'WebGUI::Asset::Wobject::Calendar',
|
||||
title => 'Calendar for doing feed tests',
|
||||
});
|
||||
|
||||
my $feedTag = WebGUI::VersionTag->getWorking($session);
|
||||
$feedTag->set({name=>"Calendar Feed Test"});
|
||||
WebGUI::Test->tagsToRollback($feedTag);
|
||||
$feedTag->commit;
|
||||
|
||||
cmp_deeply(
|
||||
$feedCal->getFeeds(),
|
||||
[],
|
||||
'getFeeds: returns an empty array ref with no feeds'
|
||||
);
|
||||
|
||||
TODO: {
|
||||
local $TODO = "Tests to make later";
|
||||
ok(0, 'Lots more to test');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue