From 61d2a6cb6fad974b2f181d35d3d1d418e03b742a Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Thu, 17 Sep 2015 19:55:02 +0300 Subject: [PATCH] Fix test --- tests/bootstrap.php | 2 +- tests/controller/documentcontrollertest.php | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 86bfd7dd..fe1e965c 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -9,5 +9,5 @@ require_once __DIR__.'/../../../lib/base.php'; if(!class_exists('PHPUnit_Framework_TestCase')) { require_once('PHPUnit/Autoload.php'); } - +\OC_App::loadApp('documents'); OC_Hook::clear(); diff --git a/tests/controller/documentcontrollertest.php b/tests/controller/documentcontrollertest.php index cebdb566..cbc17ce3 100644 --- a/tests/controller/documentcontrollertest.php +++ b/tests/controller/documentcontrollertest.php @@ -51,10 +51,6 @@ class DocumentControllerTest extends \PHPUnit_Framework_TestCase { \OC_Util::setupFS(); } - public static function tearDownAfterClass(){ - \OC_User::deleteUser(\OC_User::getUserSession()->getUser()->getUID()); - } - public function testRename(){ $result = array( 'status' => 'error',