Merge branch 'master' into WebGUI8, up to 7.9.10. Some tests failing due to changes in default content.
This commit is contained in:
commit
ca9a3bd6c7
34 changed files with 386 additions and 49 deletions
|
|
@ -670,6 +670,68 @@ is($archive->getKeywordStaticURL('bar'), '/home/mystories/keyword_bar.html', '..
|
|||
|
||||
$archive->update({ url => '/home/mystories' });
|
||||
|
||||
################################################################
|
||||
#
|
||||
# sortOrder
|
||||
#
|
||||
################################################################
|
||||
|
||||
my $aaa_child = $archive->addChild({className => 'WebGUI::Asset::Story', title => 'Aaaa'}, @skipAutoCommit);
|
||||
my $zzz_child = $archive->addChild({className => 'WebGUI::Asset::Story', title => 'Zzzz'}, @skipAutoCommit);
|
||||
WebGUI::Test->addToCleanup($aaa_child);
|
||||
WebGUI::Test->addToCleanup($zzz_child);
|
||||
|
||||
$archive->update({storiesPerPage => 25, storySortOrder => 'Alphabetically' });
|
||||
|
||||
$tag1 = WebGUI::VersionTag->getWorking($session);
|
||||
$tag1->commit;
|
||||
WebGUI::Test->addToCleanup($tag1);
|
||||
|
||||
$templateVars = $archive->viewTemplateVariables();
|
||||
|
||||
cmp_deeply (
|
||||
$templateVars->{date_loop},
|
||||
[
|
||||
{
|
||||
'story_loop' => [
|
||||
{
|
||||
'creationDate' => ignore(),
|
||||
'deleteIcon' => ignore(),
|
||||
'editIcon' => ignore(),
|
||||
'url' => re('aaaa'),
|
||||
'title' => 'Aaaa'
|
||||
},
|
||||
ignore(),
|
||||
ignore(),
|
||||
ignore(),
|
||||
ignore(),
|
||||
],
|
||||
'epochDate' => ignore(),
|
||||
},
|
||||
{
|
||||
'story_loop' => ignore(),
|
||||
'epochDate' => $wgBdayMorn,
|
||||
},
|
||||
{
|
||||
'story_loop' => ignore(),
|
||||
'epochDate' => $yesterdayMorn,
|
||||
},
|
||||
{
|
||||
'story_loop' => [
|
||||
{
|
||||
'creationDate' => ignore(),
|
||||
'deleteIcon' => ignore(),
|
||||
'editIcon' => ignore(),
|
||||
'url' => re('zzzz'),
|
||||
'title' => 'Zzzz'
|
||||
},
|
||||
],
|
||||
'epochDate' => ignore(),
|
||||
},
|
||||
],
|
||||
'viewTemplateVariables: sorted by story title'
|
||||
);
|
||||
|
||||
$creationDateSth->finish;
|
||||
done_testing();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue