* [refac] Split xxx.unittest.class.php into model.class.php, tao.class.php and zen.class.php.
This commit is contained in:
@@ -24,7 +24,7 @@ cid=17754
|
||||
*/
|
||||
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/programplan.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
su('admin');
|
||||
|
||||
zenData('project')->loadYaml('project')->gen(5);
|
||||
@@ -32,7 +32,7 @@ zenData('projectproduct')->loadYaml('projectproduct')->gen(5);
|
||||
zenData('product')->loadYaml('product')->gen(2);
|
||||
$planIDList = array(1, 2, 3);
|
||||
|
||||
$programplan = new programplanTest();
|
||||
$programplan = new programplanModelTest();
|
||||
|
||||
r($programplan->processPlanTest($planIDList[0])) && p('id,name,productName') && e('1,瀑布项目1,瀑布产品1'); // 测试id为1的瀑布项目
|
||||
r($programplan->processPlanTest($planIDList[1])) && p('id,name,productName,attribute') && e('2,阶段a,瀑布产品2,review'); // 测试id为2的瀑布项目阶段
|
||||
|
||||
Reference in New Issue
Block a user