- Remove unused files.
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(__FILE__, 5) . "/test/lib/init.php";
|
||||
|
||||
su('admin');
|
||||
|
||||
zdTable('project')->config('project')->gen(5);
|
||||
|
||||
/**
|
||||
|
||||
title=测试 projectTao::getOngoingExecutions();
|
||||
timeout=0
|
||||
cid=1
|
||||
|
||||
*/
|
||||
|
||||
global $tester;
|
||||
$tester->loadModel('project');
|
||||
$executions = $tester->project->getOngoingExecutions();
|
||||
|
||||
r($executions[5]) && p('name,code') && e('项目5,project5'); // 获取下标为5的进行中的执行列表的name和code字段
|
||||
@@ -1,26 +0,0 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
include dirname(__FILE__, 5) . "/test/lib/init.php";
|
||||
|
||||
su('admin');
|
||||
|
||||
zdTable('project')->config('project')->gen(8);
|
||||
|
||||
/**
|
||||
|
||||
title=测试 projectTao::getProjectsStats()
|
||||
timeout=0
|
||||
cid=1
|
||||
|
||||
*/
|
||||
|
||||
global $tester;
|
||||
$tester->loadModel('project');
|
||||
$projects = $tester->project->getProjectsStats();
|
||||
|
||||
r(count($projects['my'])) && p() && e('3');
|
||||
r(count($projects['other'])) && p() && e('3');
|
||||
r($projects['my'][1]['wait'][0]->status) && p() && e('wait');
|
||||
r($projects['my'][3]['doing'][0]->status) && p() && e('doing');
|
||||
r($projects['other'][2]['wait'][0]->status) && p() && e('wait');
|
||||
r($projects['other'][4]['doing'][0]->status) && p() && e('doing');
|
||||
Reference in New Issue
Block a user