]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix tests 21562/head
authorJoas Schilling <coding@schilljs.com>
Wed, 24 Jun 2020 16:11:20 +0000 (18:11 +0200)
committerJoas Schilling <coding@schilljs.com>
Wed, 24 Jun 2020 16:13:37 +0000 (18:13 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/dav/tests/unit/Files/FileSearchBackendTest.php
apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php
apps/files_versions/tests/VersioningTest.php
lib/private/Collaboration/Collaborators/UserPlugin.php
tests/lib/Files/Node/HookConnectorTest.php

index a5841da2c6600dc517c7f5c385c4e58294abe759..733de9ea1e953f9e09ed4c880acd3e8fbc476a6d 100644 (file)
@@ -44,7 +44,6 @@ use OCP\Share\IManager;
 use SearchDAV\Backend\SearchPropertyDefinition;
 use SearchDAV\Query\Limit;
 use SearchDAV\Query\Query;
-use SearchDAV\XML\Operator;
 use Test\TestCase;
 
 class FileSearchBackendTest extends TestCase {
@@ -258,7 +257,7 @@ class FileSearchBackendTest extends TestCase {
                $this->assertEquals('/files/test/test/path', $result[0]->href);
        }
 
-       
+
        public function testSearchInvalidProp() {
                $this->expectException(\InvalidArgumentException::class);
 
@@ -295,7 +294,7 @@ class FileSearchBackendTest extends TestCase {
                return new Query($select, $from, $where, $orderBy, $limit);
        }
 
-       
+
        public function testSearchNonFolder() {
                $this->expectException(\InvalidArgumentException::class);
 
index 8939198d4a8f3f2e58c270cb23d97deb6213cc81..d3fb914f4040f82109eb6b4c616ee4dff8bee456 100644 (file)
@@ -293,7 +293,7 @@ class ShareesAPIControllerTest extends TestCase {
                $this->shareManager->expects($this->any())
                        ->method('shareProviderExists')
                        ->willReturnCallback(function ($shareType) use ($emailSharingEnabled) {
-                               if ($shareType === \OCP\IShare::TYPE_EMAIL) {
+                               if ($shareType === IShare::TYPE_EMAIL) {
                                        return $emailSharingEnabled;
                                } else {
                                        return false;
index ffbf4e19f98b760e786a2cc040014e64768ce53e..b146e51c407c3f0e146690ae98143a5bf1e72eb8 100644 (file)
@@ -40,6 +40,7 @@ require_once __DIR__ . '/../appinfo/app.php';
 use OC\Files\Storage\Temporary;
 use OCP\IConfig;
 use OCP\IUser;
+use OCP\Share\IShare;
 
 /**
  * Class Test_Files_versions
index c5600fce070a80965f9e95871b84601e6bb418d5..d1f2935073434d80884c4a953a41da6aa9d1bcd8 100644 (file)
@@ -37,7 +37,6 @@ use OCP\IGroupManager;
 use OCP\IUser;
 use OCP\IUserManager;
 use OCP\IUserSession;
-use OCP\Share;
 use OCP\Share\IShare;
 
 class UserPlugin implements ISearchPlugin {
index 004b74e755cc1ddd9f1a1b364d946c4c73059225..a5e73f18365d842f86ef960c6ef2e62cf60a7c66 100644 (file)
@@ -13,7 +13,6 @@ use OC\Files\Node\HookConnector;
 use OC\Files\Node\Root;
 use OC\Files\Storage\Temporary;
 use OC\Files\View;
-use OCP\EventDispatcher\Event;
 use OCP\EventDispatcher\GenericEvent as APIGenericEvent;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Files\Events\Node\AbstractNodeEvent;