Skip to content
Snippets Groups Projects
Unverified Commit 42ba61db authored by Joas Schilling's avatar Joas Schilling
Browse files

Fix local execution

parent d22aeb74
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,8 @@ if(!class_exists('PHPUnit_Framework_TestCase')) { ...@@ -28,6 +28,8 @@ if(!class_exists('PHPUnit_Framework_TestCase')) {
require_once('PHPUnit/Autoload.php'); require_once('PHPUnit/Autoload.php');
} }
\OC::$composerAutoloader->addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true);
\OC_App::loadApp('dav'); \OC_App::loadApp('dav');
OC_Hook::clear(); OC_Hook::clear();
...@@ -26,6 +26,9 @@ namespace OCA\DAV\Tests\Unit\Connector\Sabre; ...@@ -26,6 +26,9 @@ namespace OCA\DAV\Tests\Unit\Connector\Sabre;
use OCP\Files\ForbiddenException; use OCP\Files\ForbiddenException;
/**
* @group DB
*/
class Directory extends \Test\TestCase { class Directory extends \Test\TestCase {
/** @var \OC\Files\View | \PHPUnit_Framework_MockObject_MockObject */ /** @var \OC\Files\View | \PHPUnit_Framework_MockObject_MockObject */
......
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