* [refac] Split xxx.unittest.class.php into model.class.php, tao.class.php and zen.class.php.

This commit is contained in:
liugang
2026-01-14 15:32:47 +08:00
parent 1940c61846
commit 1503f91b2b
3522 changed files with 66017 additions and 28160 deletions
@@ -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');