use SearchDAV\Backend\SearchPropertyDefinition;
use SearchDAV\Query\Limit;
use SearchDAV\Query\Query;
-use SearchDAV\XML\Operator;
use Test\TestCase;
class FileSearchBackendTest extends TestCase {
$this->assertEquals('/files/test/test/path', $result[0]->href);
}
-
+
public function testSearchInvalidProp() {
$this->expectException(\InvalidArgumentException::class);
return new Query($select, $from, $where, $orderBy, $limit);
}
-
+
public function testSearchNonFolder() {
$this->expectException(\InvalidArgumentException::class);
$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;
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;