Files
EasySoft-ZenTaoPMS/test/model/story/update.php
2022-03-22 14:07:42 +08:00

27 lines
833 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
su('admin');
/**
title=测试 storyModel->update();
cid=1
pid=1
*/
$story = new storyTest();
$story1['parent'] = 2;
$story1['pri'] = 4;
$story1['estimate'] = 1;
$story1['sourceNote'] = '测试来源备注1';
$story1['product'] = 2;
$result1 = $story->updateTest(1, $story1);
$result2 = $story->updateTest(3, $story1);
r($result1) && p('parent,pri,estimate,sourceNote,product') && e('2,4,1,测试来源备注1,2'); // 编辑用户需求判断返回的信息stage为空
r($result2) && p('parent,pri,estimate,sourceNote,product') && e('2,4,1,测试来源备注1,2'); // 编辑软件需求判断返回的信息stage为waitparent为2
system("./ztest init");