Files
EasySoft-ZenTaoPMS/module/stakeholder/test/model/getexpectbyid.php
T

23 lines
629 B
PHP
Executable File

#!/usr/bin/env php
<?php
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/stakeholder.class.php';
su('admin');
/**
title=测试 stakeholderModel->getExpectByID();
cid=1
pid=1
查询不存在的期望数据 >> 0
正常查询期望数据 >> 期望内容17
*/
global $tester;
$stakeholder = $tester->loadModel('stakeholder');
$expectIDList = array('0', '17');
r($stakeholder->getExpectByID($expectIDList[0])) && p() && e('0'); //查询不存在的期望数据
r($stakeholder->getExpectByID($expectIDList[1])) && p('expect') && e('期望内容17');//正常查询期望数据