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',