可移动式的实用程序,用于测试
代码说明:
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
下载说明:请别用迅雷下载,失败请重下,重下不扣分!