Fix tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
This commit is contained in:
parent
0bf6fcd6cd
commit
5cb11ca642
8 changed files with 16 additions and 11 deletions
BIN
apps/files_sharing/js/dist/files_sharing_tab.js
vendored
BIN
apps/files_sharing/js/dist/files_sharing_tab.js
vendored
Binary file not shown.
BIN
apps/files_sharing/js/dist/files_sharing_tab.js.map
vendored
BIN
apps/files_sharing/js/dist/files_sharing_tab.js.map
vendored
Binary file not shown.
|
@ -49,7 +49,6 @@ use OCP\AppFramework\Utility\IControllerMethodReflector;
|
|||
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;
|
||||
|
|
|
@ -71,8 +71,7 @@ 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();
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
*/
|
||||
|
||||
use OCA\Files_Trashbin\Tests;
|
||||
use OCA\Files_Sharing\AppInfo\Application;
|
||||
|
||||
/**
|
||||
* Class Test_Encryption
|
||||
|
@ -67,8 +68,9 @@ class TrashbinTest extends \Test\TestCase {
|
|||
// 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');
|
||||
|
|
|
@ -60,7 +60,6 @@ class VersioningTest extends \Test\TestCase {
|
|||
parent::setUpBeforeClass();
|
||||
|
||||
$application = new \OCA\Files_Sharing\AppInfo\Application();
|
||||
$application->registerMountProviders();
|
||||
|
||||
// create test user
|
||||
self::loginHelper(self::TEST_VERSIONS_USER2, true);
|
||||
|
|
|
@ -53,10 +53,14 @@ module.exports = function(config) {
|
|||
// only test these files, others are not ready and mess
|
||||
// up with the global namespace/classes/state
|
||||
'apps/files_sharing/js/app.js',
|
||||
'apps/files_sharing/js/sharedfilelist.js',
|
||||
'apps/files_sharing/js/dist/additionalScripts.js',
|
||||
'apps/files_sharing/js/public.js',
|
||||
'apps/files_sharing/js/dist/files_sharing_tab.js',
|
||||
'apps/files_sharing/js/dist/files_sharing.js',
|
||||
'apps/files_sharing/js/dist/main.js',
|
||||
'apps/files_sharing/js/dist/sidebar.js',
|
||||
'apps/files_sharing/js/files_drop.js',
|
||||
'apps/files_sharing/js/public.js',
|
||||
'apps/files_sharing/js/sharedfilelist.js',
|
||||
'apps/files_sharing/js/templates.js',
|
||||
],
|
||||
testFiles: ['apps/files_sharing/tests/js/*.js']
|
||||
|
|
|
@ -10,6 +10,7 @@ namespace Test\Files;
|
|||
|
||||
use OC\Files\Filesystem;
|
||||
use OCP\Share;
|
||||
use OCA\Files_Sharing\AppInfo\Application;
|
||||
|
||||
/**
|
||||
* Class EtagTest
|
||||
|
@ -32,8 +33,9 @@ class EtagTest extends \Test\TestCase {
|
|||
parent::setUp();
|
||||
|
||||
\OC_Hook::clear('OC_Filesystem', 'setup');
|
||||
$application = new \OCA\Files_Sharing\AppInfo\Application();
|
||||
$application->registerMountProviders();
|
||||
// init files sharing
|
||||
new Application();
|
||||
|
||||
\OC\Share\Share::registerBackend('file', 'OCA\Files_Sharing\ShareBackend\File');
|
||||
\OC\Share\Share::registerBackend('folder', 'OCA\Files_Sharing\ShareBackend\Folder', 'file');
|
||||
|
||||
|
|
Loading…
Reference in a new issue