Changeset 2563

Show
Ignore:
Timestamp:
06/13/08 01:01:43 (20 months ago)
Author:
auno
Message:

More fix for perl test. BugzID:79876

Location:
branches/release-40
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • branches/release-40/lib/MT/Template/ContextHandlers.pm

    r2557 r2563  
    1404314043 
    1404414044        require MT::ObjectAsset; 
    14045         my @assets = MT::Asset->load(undef, { join => MT::ObjectAsset->join_on(undef, { 
     14045        my @assets = MT::Asset->load({ class => '*' }, { join => MT::ObjectAsset->join_on(undef, { 
    1404614046            asset_id => \'= asset_id', object_ds => 'entry', object_id => $e->id })}); 
    1404714047        return '' unless @assets; 
  • branches/release-40/t/35-tags.dat

    r2530 r2563  
    406406{ "r" : "1", "t" : "<MTAuthors sort_by='display_name' sort_order='descend'><MTAuthorID>;</MTAuthors>", "e" : "3;2;"}, #354 
    407407{ "r" : "1", "t" : "<MTArchives><MTArchiveLabel></MTArchives>", "e" : "EntryMonthlyWeeklyDailyCategoryPage"}, #355 
    408 { "r" : "1", "t" : "<MTEntries><$MTEntryID$>:<MTComments><MTIfCommenterIsAuthor><MTIfCommenterIsEntryAuthor>2<MTElse>1</MTIfCommenterIsEntryAuthor><MTElse>0</MTIfCommenterIsAuthor>;</MTComments></MTEntries>", "e" : "1:0;0;0;8:0;7:6:1;2;0;5:0;4:"}, #356 
     408{ "r" : "1", "t" : "<MTEntries><$MTEntryID$>:<MTComments><MTIfCommenterIsAuthor><MTIfCommenterIsEntryAuthor>2<MTElse>1</MTIfCommenterIsEntryAuthor><MTElse>0</MTIfCommenterIsAuthor>;</MTComments></MTEntries>", "e" : "1:0;0;0;8:0;7:6:2;1;0;5:0;4:"}, #356 
    409409{ "r" : "1", "t" : "<MTPages id='20'><$MTPageMore$></MTPages>", "e" : "<p>I don't have much to say,</p>"}, #357 
    410410{ "r" : "1", "t" : "<MTAssets lastn='1'><$MTAssetlabel$></MTAssets>", "e" : "Image photo"}, #358 
  • branches/release-40/t/lib/MT/Test.pm

    r2530 r2563  
    3737our $CORE_TIME; 
    3838BEGIN { 
    39     *CORE::GLOBAL::time  = sub { CORE::time }; 
     39    *CORE::GLOBAL::time  = sub { my ($a) = @_; $a ? CORE::time + $_[0] : CORE::time }; 
    4040    *CORE::GLOBAL::sleep = sub { CORE::sleep }; 
    4141} 
     
    595595        $cmt->commenter_id($chuckd->id); 
    596596        $cmt->visible(1); 
     597        $cmt->created_on('20040910183000'); 
    597598        $cmt->id(14); 
    598599        $cmt->save or die "Couldn't save comment record 1: ".$cmt->errstr; 
     
    601602        $cmt->commenter_id($bobd->id); 
    602603        $cmt->visible(1); 
     604        $cmt->created_on('20040910182800'); 
    603605        $cmt->id(15); 
    604606        $cmt->save or die "Couldn't save comment record 1: ".$cmt->errstr;