Changeset 5091

Show
Ignore:
Timestamp:
11/25/09 07:30:07 (4 months ago)
Author:
takayama
Message:

* Fixed for work.

Location:
branches/greyhound/t
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/greyhound/t/66-templatecache.t

    r4196 r5091  
    2323$blog->include_cache(1); 
    2424$blog->include_system(""); 
     25$blog->save; 
    2526 
    2627my $include = MT::Template->new; 
     
    3738$tmpl->blog_id($blog->id); 
    3839$tmpl->text('<mt:include module="Included Template">'); 
     40$tmpl->type('custom'); 
    3941my $ctx = MT::Template::Context->new; 
    4042my $out1 = $tmpl->build($ctx, {}); 
     
    4244 
    4345my @ts = offset_time_list(time, $blog->id); 
    44 my $ts = sprintf '%04d%02d%02d%02d%02d%02d', $ts[5]+1900, $ts[4]+1, @ts[3,2,1,0]; 
     46my $ts = sprintf '%04d%02d%02d%02d%02d%02d', $ts[5]+1900, $ts[4]+1, @ts[3,2,1], @ts[0]+1; 
    4547MT::Request->instance->reset; 
    4648$include->text('hello yay'); 
     
    5052my $out2 = $tmpl->build($ctx, {}); 
    5153ok($out2 ne "hello", "Test template should be the same"); 
    52  
    5354MT::Request->instance->reset; 
    5455my $entry = MT::Entry->new; 
  • branches/greyhound/t/80-serialize.t

    r4196 r5091  
    2222} 
    2323 
    24 is($MT::Serialize::VERSION, 4, 'Default version is v4'); 
     24is($MT::Serialize::VERSION, 5, 'Default version is v5'); 
    2525 
    2626my %sers = map { $_ => MT::Serialize->new($_) } qw(MTJ JSON MT MT2 MTS Storable);