Files
EasySoft-ZenTaoPMS/module/sonarqube/test/model/getcachefile.php
T

23 lines
534 B
PHP
Executable File

#!/usr/bin/env php
<?php
/**
title=测试 sonarqubeModel::getCacheFile();
cid=0
- 使用正确的sonarqubeID,项目key获取缓存文件 @1
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
include dirname(__FILE__, 2) . '/sonarqube.class.php';
su('admin');
zdTable('pipeline')->config('pipeline')->gen(5);
$sonarqubeID = 2;
$projectKey = 'unit_test';
$sonarqube = new sonarqubeTest();
r($sonarqube->getCacheFileTest($sonarqubeID, $projectKey)) && p('') && e(1); //使用正确的sonarqubeID,项目key获取缓存文件