From 42ba61db044f1d08e22089fbc3badafbc35d5ea4 Mon Sep 17 00:00:00 2001
From: Joas Schilling <nickvergessen@owncloud.com>
Date: Wed, 25 May 2016 15:39:52 +0200
Subject: [PATCH] Fix local execution

---
 apps/dav/tests/unit/bootstrap.php                 | 2 ++
 apps/dav/tests/unit/connector/sabre/directory.php | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/apps/dav/tests/unit/bootstrap.php b/apps/dav/tests/unit/bootstrap.php
index f6733bc7a3e..375171ff8b3 100644
--- a/apps/dav/tests/unit/bootstrap.php
+++ b/apps/dav/tests/unit/bootstrap.php
@@ -28,6 +28,8 @@ if(!class_exists('PHPUnit_Framework_TestCase')) {
 	require_once('PHPUnit/Autoload.php');
 }
 
+\OC::$composerAutoloader->addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true);
+
 \OC_App::loadApp('dav');
 
 OC_Hook::clear();
diff --git a/apps/dav/tests/unit/connector/sabre/directory.php b/apps/dav/tests/unit/connector/sabre/directory.php
index c4ddc38b3e1..e25a82c4876 100644
--- a/apps/dav/tests/unit/connector/sabre/directory.php
+++ b/apps/dav/tests/unit/connector/sabre/directory.php
@@ -26,6 +26,9 @@ namespace OCA\DAV\Tests\Unit\Connector\Sabre;
 
 use OCP\Files\ForbiddenException;
 
+/**
+ * @group DB
+ */
 class Directory extends \Test\TestCase {
 
 	/** @var \OC\Files\View | \PHPUnit_Framework_MockObject_MockObject */
-- 
GitLab