diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-11-14 08:05:44 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-12-02 13:08:43 +0100 |
commit | 5cb11ca6427855f52b822d2a786e54daddc62fc9 (patch) | |
tree | 17b137c6c222a6954932a7d603de481e554b25f8 /tests/lib | |
parent | 0bf6fcd6cd0ef87fc8e41f34fbc939a5f2bd9a7d (diff) | |
download | nextcloud-server-5cb11ca6427855f52b822d2a786e54daddc62fc9.tar.gz nextcloud-server-5cb11ca6427855f52b822d2a786e54daddc62fc9.zip |
Fix tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/Files/EtagTest.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/Files/EtagTest.php b/tests/lib/Files/EtagTest.php index acda220d01f..554812253f3 100644 --- a/tests/lib/Files/EtagTest.php +++ b/tests/lib/Files/EtagTest.php @@ -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'); |