浏览代码

Don't break app on travis

tags/v9.0beta1
Thomas Müller 8 年前
父节点
当前提交
dddfa6de78
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      tests/lib/testcase.php

+ 5
- 0
tests/lib/testcase.php 查看文件

@@ -338,6 +338,11 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase {
}

private function IsDatabaseAccessAllowed() {
// on travis-ci.org we allow database access in any case - otherwise
// this will break all apps right away
if (true == getenv('TRAVIS')) {
return true;
}
$annotations = $this->getAnnotations();
if (isset($annotations['class']['group']) && in_array('DB', $annotations['class']['group'])) {
return true;

正在加载...
取消
保存