* [refac] Split xxx.unittest.class.php into model.class.php, tao.class.php and zen.class.php.
This commit is contained in:
@@ -25,7 +25,7 @@ cid=18250
|
||||
|
||||
// 1. 导入依赖
|
||||
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/lib/screen.unittest.class.php';
|
||||
include dirname(__FILE__, 2) . '/lib/model.class.php';
|
||||
|
||||
// 2. zendata数据准备
|
||||
$userTable = zenData('user');
|
||||
@@ -40,7 +40,7 @@ $userTable->gen(5);
|
||||
su('admin');
|
||||
|
||||
// 4. 创建测试实例
|
||||
$screenTest = new screenTest();
|
||||
$screenTest = new screenModelTest();
|
||||
|
||||
// 5. 执行至少5个测试步骤
|
||||
r($screenTest->getOptionsFromSqlTest("SELECT id, account FROM " . TABLE_USER . " WHERE deleted='0' ORDER BY id LIMIT 3", 'id', 'account')) && p('1,2,3') && e('admin,test1,test2');
|
||||
|
||||
Reference in New Issue
Block a user