done with addRevision tests
remaining fails are other stuff and I need to move on
This commit is contained in:
parent
7c14d1e6c4
commit
f43541c5c9
7 changed files with 9 additions and 8 deletions
|
|
@ -152,7 +152,7 @@ sub handle {
|
|||
for my $handler (@{$session->config->get("contentHandlers")}) {
|
||||
my $output = eval { WebGUI::Pluggable::run($handler, "handler", [ $session ] )};
|
||||
if ( my $e = WebGUI::Error->caught ) {
|
||||
$session->log->error($e->package.":".$e->line." - ".$e->error);
|
||||
$session->log->error($e->package.":".$e->line." - ".$e->full_message);
|
||||
$session->log->debug($e->package.":".$e->line." - ".$e->trace);
|
||||
}
|
||||
elsif ( $@ ) {
|
||||
|
|
|
|||
|
|
@ -85,9 +85,6 @@ loginRgstr ;
|
|||
# Add an EMS asset
|
||||
my $ems = $node->addChild({
|
||||
className =>'WebGUI::Asset::Wobject::EventManagementSystem',
|
||||
title => 'Test EMS',
|
||||
description => 'This is a test ems',
|
||||
url => '/test-ems',
|
||||
workflowIdCommit => 'pbworkflow000000000003', # Commit Content Immediately
|
||||
registrationStaffGroupId => $registrars->getId,
|
||||
groupIdView => $attendees->getId,
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ use WebGUI::Asset::Snippet;
|
|||
#----------------------------------------------------------------------------
|
||||
# Init
|
||||
my $session = WebGUI::Test->session;
|
||||
my $node = WebGUI::Asset->getImportNode($session);
|
||||
my $node = WebGUI::Test->asset;
|
||||
|
||||
# Make a snippet to shortcut
|
||||
my $now = time();
|
||||
|
|
|
|||
|
|
@ -329,7 +329,7 @@ cmp_bag(
|
|||
{ keyword => "whiskey", url => '/home/test-archive?func=view;keyword=whiskey', },
|
||||
],
|
||||
'viewTemplateVariables: keywords_loop is okay'
|
||||
);
|
||||
) or debug( Dumper $viewVariables->{keyword_loop} );
|
||||
|
||||
is ($viewVariables->{updatedTimeEpoch}, $story->revisionDate, 'viewTemplateVariables: updatedTimeEpoch');
|
||||
|
||||
|
|
|
|||
|
|
@ -89,6 +89,10 @@ $expect = sortThreads( sub { $b->get('revisionDate') <=> $a->get('revisionDate')
|
|||
cmp_deeply( $page, $expect, 'getThreadsPaginator sort by no default' )
|
||||
or diag( "GOT: " . Dumper $page ), diag( "EXPECTED: " . Dumper $expect );
|
||||
undef $collab2;
|
||||
# clear scratch to reset sort
|
||||
$session->scratch->delete($collab->getId.'_sortBy');
|
||||
$session->scratch->delete($collab->getId.'_sortDir');
|
||||
|
||||
# sortBy default from asset
|
||||
$collab->update({
|
||||
sortBy => 'assetData.revisionDate',
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ my $ems = $node->addChild({
|
|||
className =>'WebGUI::Asset::Wobject::EventManagementSystem',
|
||||
title => 'Test EMS',
|
||||
description => 'This is a test ems',
|
||||
url => '/test-ems',
|
||||
url => 'test-ems',
|
||||
workflowIdCommit => 'pbworkflow000000000003', # Commit Content Immediately
|
||||
registrationStaffGroupId => $registrars->getId,
|
||||
groupIdView => $attendees->getId,
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ $versionTag->set({name=>"Adding assets for RootTitle tests"});
|
|||
my %tag = ( tagId => $versionTag->getId, status => "pending" );
|
||||
addToCleanup($versionTag);
|
||||
|
||||
my $root = WebGUI::Asset->getRoot($session);
|
||||
my $root = WebGUI::Test->asset;
|
||||
my %properties_A = (
|
||||
className => 'WebGUI::Asset::Snippet',
|
||||
title => 'Asset A',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue