39 lines
822 B
PHP
Executable File
39 lines
822 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
|
|
title=测试 myModel->getActions();
|
|
cid=1
|
|
|
|
- 正常查询action @96,64,32,95,63
|
|
|
|
- 正常查询action统计 @5
|
|
|
|
*/
|
|
|
|
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
|
include dirname(__FILE__, 2) . '/my.class.php';
|
|
|
|
zdtable('action')->gen('100');
|
|
zdtable('doc')->gen('0');
|
|
zdtable('api')->gen('0');
|
|
zdtable('doclib')->gen('0');
|
|
zdtable('project')->gen('0');
|
|
zdtable('product')->gen('0');
|
|
zdTable('user')->gen('1');
|
|
|
|
su('admin');
|
|
|
|
global $lang, $app;
|
|
$lang->SRCommon = '研发需求';
|
|
$lang->URCommon = '用户需求';
|
|
$app->loadLang('action');
|
|
|
|
$my = new myTest();
|
|
|
|
$actions = $my->getActionsTest();
|
|
r(implode(',', $actions)) && p() && e('96,64,32,95,63'); // 正常查询action
|
|
r(count($actions)) && p() && e('5'); // 正常查询action统计
|