* Add project test and fix bug.

This commit is contained in:
孙广明
2022-04-06 16:01:06 +08:00
parent 598a6eb7e9
commit bd895ca244
31 changed files with 387 additions and 440 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env php
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
su('admin');
/**
title=测试 projectModel->buildMenuQuery();
cid=1
pid=1
*/
global $tester;
$tester->loadModel('project');
r(strlen($tester->project->buildMenuQuery(11))) && p() && e('231'); // 获取构建的查询项目的sql的字符串长度
r(strlen($tester->project->buildMenuQuery(100))) && p() && e('233'); // 获取构建的查询项目的sql的字符串长度