Skip to content
Snippets Groups Projects
Commit dddfa6de authored by Thomas Müller's avatar Thomas Müller
Browse files

Don't break app on travis

parent 318e5e28
No related branches found
No related tags found
No related merge requests found
...@@ -338,6 +338,11 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase { ...@@ -338,6 +338,11 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase {
} }
private function IsDatabaseAccessAllowed() { 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(); $annotations = $this->getAnnotations();
if (isset($annotations['class']['group']) && in_array('DB', $annotations['class']['group'])) { if (isset($annotations['class']['group']) && in_array('DB', $annotations['class']['group'])) {
return true; return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment