Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
  • Loading branch information
skjnldsv committed Dec 2, 2019
1 parent 0bf6fcd commit 5e8cc6e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 17 deletions.
18 changes: 9 additions & 9 deletions apps/files_sharing/js/dist/files_sharing_tab.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files_sharing/js/dist/files_sharing_tab.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion apps/files_sharing/lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
use OCP\Defaults;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Federation\ICloudIdManager;
use OCP\IContainer;
use OCP\Files\Config\IMountProviderCollection;
use OCP\IContainer;
use OCP\IGroup;
Expand Down
5 changes: 2 additions & 3 deletions apps/files_sharing/tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ abstract class TestCase extends \Test\TestCase {
public static function setUpBeforeClass(): void {
parent::setUpBeforeClass();

$application = new Application();
$application->registerMountProviders();

new Application();

// reset backend
\OC_User::clearBackends();
\OC::$server->getGroupManager()->clearBackends();
Expand Down
6 changes: 4 additions & 2 deletions apps/files_trashbin/tests/TrashbinTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
*/

use OCA\Files_Trashbin\Tests;
use OCA\Files_Sharing\AppInfo\Application;

/**
* Class Test_Encryption
Expand Down Expand Up @@ -67,8 +68,9 @@ public static function setUpBeforeClass(): void {
// clear share hooks
\OC_Hook::clear('OCP\\Share');
\OC::registerShareHooks();
$application = \OC::$server->query(\OCA\Files_Sharing\AppInfo\Application::class);
$application->registerMountProviders();

// init files sharing
new Application();

//disable encryption
\OC::$server->getAppManager()->disableApp('encryption');
Expand Down
1 change: 0 additions & 1 deletion apps/files_versions/tests/VersioningTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public static function setUpBeforeClass(): void {
parent::setUpBeforeClass();

$application = new \OCA\Files_Sharing\AppInfo\Application();
$application->registerMountProviders();

// create test user
self::loginHelper(self::TEST_VERSIONS_USER2, true);
Expand Down

0 comments on commit 5e8cc6e

Please sign in to comment.