diff options
author | Robin Appelman <robin@icewind.nl> | 2017-08-26 10:52:22 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-08-26 10:52:22 +0200 |
commit | 42915b1e8bea013153834ff5ec4aa57b7b2908a9 (patch) | |
tree | b9f6c0a0da45da24aafff89817e2a45353fd9f71 /apps/dav | |
parent | 37e8b698f71481fe420a8eb248a5f604cd732cbd (diff) | |
download | nextcloud-server-42915b1e8bea013153834ff5ec4aa57b7b2908a9.tar.gz nextcloud-server-42915b1e8bea013153834ff5ec4aa57b7b2908a9.zip |
Fix test
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/tests/unit/Files/FileSearchBackendTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/tests/unit/Files/FileSearchBackendTest.php b/apps/dav/tests/unit/Files/FileSearchBackendTest.php index 7de92c59763..28b6f082712 100644 --- a/apps/dav/tests/unit/Files/FileSearchBackendTest.php +++ b/apps/dav/tests/unit/Files/FileSearchBackendTest.php @@ -24,6 +24,7 @@ namespace OCA\DAV\Tests\Files; use OC\Files\Search\SearchComparison; use OC\Files\Search\SearchQuery; use OC\Files\View; +use OCA\DAV\Connector\Sabre\CachingTree; use OCA\DAV\Connector\Sabre\Directory; use OCA\DAV\Connector\Sabre\File; use OCA\DAV\Connector\Sabre\FilesPlugin; @@ -34,7 +35,6 @@ use OCP\Files\IRootFolder; use OCP\Files\Search\ISearchComparison; use OCP\IUser; use OCP\Share\IManager; -use Sabre\DAV\Tree; use SearchDAV\XML\BasicSearch; use SearchDAV\XML\Literal; use SearchDAV\XML\Operator; @@ -42,7 +42,7 @@ use SearchDAV\XML\Scope; use Test\TestCase; class FileSearchBackendTest extends TestCase { - /** @var Tree|\PHPUnit_Framework_MockObject_MockObject */ + /** @var CachingTree|\PHPUnit_Framework_MockObject_MockObject */ private $tree; /** @var IUser */ @@ -74,7 +74,7 @@ class FileSearchBackendTest extends TestCase { ->method('getUID') ->willReturn('test'); - $this->tree = $this->getMockBuilder(Tree::class) + $this->tree = $this->getMockBuilder(CachingTree::class) ->disableOriginalConstructor() ->getMock(); |