Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteffen Lindner <mail@steffen-lindner.de>2015-09-02 16:41:18 +0300
committerSteffen Lindner <mail@steffen-lindner.de>2015-09-02 16:41:18 +0300
commitce7364ecdaeb160e1a96b27b5d946eb416ed0ff0 (patch)
tree5ab67a497daf69a9dadf8b5bfaff286904179725 /tests/bootstrap.php
parent4aed4699efc493be1652254ae8d5b779b98e542e (diff)
Add version check
Diffstat (limited to 'tests/bootstrap.php')
-rw-r--r--tests/bootstrap.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index b07f0a0f4..32672aabe 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -4,7 +4,10 @@ define('PHPUNIT_RUN', 1);
require_once __DIR__.'/../../../lib/base.php';
require_once __DIR__.'/../vendor/autoload.php';
-\OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
+
+if (version_compare(implode('.', \OCP\Util::getVersion()), '8.2', '<=')) {
+ \OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
+}
if(!class_exists('PHPUnit_Framework_TestCase')) {
require_once('PHPUnit/Autoload.php');