Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/21562/head
Joas Schilling 6 years ago
parent 89ed2c37bf
commit a2f34f46b2
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
  1. 5
      apps/dav/tests/unit/Files/FileSearchBackendTest.php
  2. 2
      apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php
  3. 1
      apps/files_versions/tests/VersioningTest.php
  4. 1
      lib/private/Collaboration/Collaborators/UserPlugin.php
  5. 1
      tests/lib/Files/Node/HookConnectorTest.php

@ -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);

@ -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;

@ -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

@ -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 {

@ -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;

Loading…
Cancel
Save