]> source.dussan.org Git - nextcloud-server.git/commitdiff
Dont fatal error test when encryption is enabled
authorRobin Appelman <icewind@owncloud.com>
Mon, 16 Feb 2015 15:41:51 +0000 (16:41 +0100)
committerRobin Appelman <icewind@owncloud.com>
Tue, 17 Feb 2015 14:05:29 +0000 (15:05 +0100)
apps/files_sharing/tests/testcase.php

index 65fbfac7d1d6e4ca1af96170d8c0a1caf1771968..d76f8f76eb490cb6a484561cde9f430c90683cf1 100644 (file)
@@ -88,13 +88,13 @@ abstract class TestCase extends \Test\TestCase {
        protected function setUp() {
                parent::setUp();
 
-               $this->assertFalse(\OC_App::isEnabled('files_encryption'));
-
                //login as user1
                self::loginHelper(self::TEST_FILES_SHARING_API_USER1);
 
                $this->data = 'foobar';
                $this->view = new \OC\Files\View('/' . self::TEST_FILES_SHARING_API_USER1 . '/files');
+
+               $this->assertFalse(\OC_App::isEnabled('files_encryption'));
        }
 
        protected function tearDown() {