From f20d64e70b0c03749b6e151659b4642703cd103d Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Mon, 27 Feb 2023 16:23:11 +0800 Subject: [PATCH] * Update test case. --- test/model/custom/getalllang.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/test/model/custom/getalllang.php b/test/model/custom/getalllang.php index 64c63eb325..e1122d0185 100755 --- a/test/model/custom/getalllang.php +++ b/test/model/custom/getalllang.php @@ -4,16 +4,25 @@ include dirname(dirname(dirname(__FILE__))) . '/lib/init.php'; include dirname(dirname(dirname(__FILE__))) . '/class/custom.class.php'; su('admin'); +$ztLang = zdTable('lang'); +$ztLang->id->range('1-3'); +$ztLang->lang->range('zh-cn'); +$ztLang->module->range('common,myMenu,my'); +$ztLang->section->range('``,menu,featureBar-todo'); +$ztLang->key->range('productCommon,index,all'); +$ztLang->value->range('1-3')->prefix('测试'); +$ztLang->gen(3); + /** title=测试 customModel->getAllLang(); cid=1 pid=1 -测试正常查询 >> 2 +测试正常查询 >> 3 */ $custom = new customTest(); -r($custom->getAllLangTest()) && p() && e('2'); //测试正常查询 \ No newline at end of file +r($custom->getAllLangTest()) && p() && e('3'); //测试正常查询