Make a new storage location when an Event is duplicated. Fixes bug #11937.

This commit is contained in:
Colin Kuskie 2010-11-01 09:19:08 -07:00
parent 1c63a65377
commit 04ec75719e
3 changed files with 28 additions and 1 deletions

View file

@ -19,7 +19,7 @@ use WebGUI::Asset::Event;
use Test::More; # increment this value for each test you create
use Test::Deep;
plan tests => 22;
plan tests => 23;
my $session = WebGUI::Test->session;
@ -143,3 +143,13 @@ is ($event7->get('startDate'), '2000-09-01', 'startDate bumped by 1 day');
is ($event7->get('endTime'), '00:00:00', 'endTime set to 00:00:00 if the hour is more than 23');
is ($event7->get('endDate'), '2000-09-02', 'endDate bumped by 1 day');
#######################################
#
# duplicate
#
#######################################
my $event6b = $event6->duplicate();
isnt($event6b->get('storageId'), $event6->get('storageId'), 'duplicating an asset creates a new storage location');