* Fixed the error of companyModel::getByID.
This commit is contained in:
@@ -4,6 +4,8 @@ include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/company.class.php';
|
||||
su('admin');
|
||||
|
||||
zdTable('company')->gen(1);
|
||||
|
||||
/**
|
||||
|
||||
title=测试companyModel->getByIDTest();
|
||||
@@ -19,4 +21,4 @@ $companyIDList = array('0', '1');
|
||||
|
||||
$company = new companyTest();
|
||||
r($company->getByIDTest($companyIDList[1])) && p('name') && e('易软天创网络科技有限公司'); // 根据id查询公司
|
||||
r($company->getByIDTest($companyIDList[0])) && p() && e('0'); // 错误id查询
|
||||
r($company->getByIDTest($companyIDList[0])) && p() && e('0'); // 错误id查询
|
||||
|
||||
Reference in New Issue
Block a user