program test case
This commit is contained in:
23
test/model/program/createdefaultprogram.php
Normal file
23
test/model/program/createdefaultprogram.php
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/program.class.php';
|
||||
$db->switchDB();
|
||||
|
||||
/**
|
||||
|
||||
title=测试 programModel::createDefaultProgram();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
创建默认项目集并返回ID >> 751
|
||||
|
||||
*/
|
||||
|
||||
global $tester;
|
||||
$test = new programTest();
|
||||
|
||||
$result = $test->createDefaultProgram();
|
||||
|
||||
r($result) && p('') && e('751'); // 创建默认项目集并返回ID
|
||||
$db->restoreDB();
|
||||
Reference in New Issue
Block a user