Changeset 5091
- Timestamp:
- 11/25/09 07:30:07 (4 months ago)
- Location:
- branches/greyhound/t
- Files:
-
- 2 modified
-
66-templatecache.t (modified) (4 diffs)
-
80-serialize.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/greyhound/t/66-templatecache.t
r4196 r5091 23 23 $blog->include_cache(1); 24 24 $blog->include_system(""); 25 $blog->save; 25 26 26 27 my $include = MT::Template->new; … … 37 38 $tmpl->blog_id($blog->id); 38 39 $tmpl->text('<mt:include module="Included Template">'); 40 $tmpl->type('custom'); 39 41 my $ctx = MT::Template::Context->new; 40 42 my $out1 = $tmpl->build($ctx, {}); … … 42 44 43 45 my @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];46 my $ts = sprintf '%04d%02d%02d%02d%02d%02d', $ts[5]+1900, $ts[4]+1, @ts[3,2,1], @ts[0]+1; 45 47 MT::Request->instance->reset; 46 48 $include->text('hello yay'); … … 50 52 my $out2 = $tmpl->build($ctx, {}); 51 53 ok($out2 ne "hello", "Test template should be the same"); 52 53 54 MT::Request->instance->reset; 54 55 my $entry = MT::Entry->new; -
branches/greyhound/t/80-serialize.t
r4196 r5091 22 22 } 23 23 24 is($MT::Serialize::VERSION, 4, 'Default version is v4');24 is($MT::Serialize::VERSION, 5, 'Default version is v5'); 25 25 26 26 my %sers = map { $_ => MT::Serialize->new($_) } qw(MTJ JSON MT MT2 MTS Storable);
