资 源 简 介
NAME
MT::App::Test - Movable Type"s utility for test
SYNOPSIS
```
use MT::App::Test;
use File::Basename qw( dirname );
use File::Spec;
createing test app object
$app = MT::App::Test->testinstanceof(
datadirs => dirname(File::Spec->rel2abs(FILE__)),
);
$app->isa("MT::App::CMS"); # => true
model class for testing
my $entryclass = $app->testmodel("entry");
fetching entry that has not stored.
my $entrytosave = $entryclass->testloadvolatiles("tosave");
$entrytosave->save();
loading a "context" for test
$app->testtemplateloadcontext("ctx1"),
building tag
$entrytitle = $app->testtemplate_build("mt:EntryTitle");
building tag by php
$entrytitle = $app->testph