znt/module/metric/test/model/getwaterfullprojectpairs.php

31 lines
1.2 KiB
PHP
Executable file
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env php
<?php
/**
title=测试 metricModel::getWaterfullProjectPairs();
timeout=0
cid=17133
- 步骤1查询rnd视域瀑布项目数量 @4
- 步骤2查询ops视域瀑布项目数量 @0
- 步骤3查询lite视域瀑布项目数量 @0
- 步骤4查询test视域瀑布项目数量 @0
- 步骤5查询不存在视域瀑布项目数量 @0
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/lib/model.class.php';
zenData('project')->loadYaml('project_getwaterfullprojectpairs')->gen(20);
su('admin');
$metricTest = new metricModelTest();
r(count($metricTest->getWaterfullProjectPairsTest('rnd'))) && p() && e('4'); // 步骤1查询rnd视域瀑布项目数量
r(count($metricTest->getWaterfullProjectPairsTest('ops'))) && p() && e('0'); // 步骤2查询ops视域瀑布项目数量
r(count($metricTest->getWaterfullProjectPairsTest('lite'))) && p() && e('0'); // 步骤3查询lite视域瀑布项目数量
r(count($metricTest->getWaterfullProjectPairsTest('test'))) && p() && e('0'); // 步骤4查询test视域瀑布项目数量
r(count($metricTest->getWaterfullProjectPairsTest('notexist'))) && p() && e('0'); // 步骤5查询不存在视域瀑布项目数量