diff options
Diffstat (limited to 'apps/dav/tests/unit/Files/FileSearchBackendTest.php')
-rw-r--r-- | apps/dav/tests/unit/Files/FileSearchBackendTest.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/apps/dav/tests/unit/Files/FileSearchBackendTest.php b/apps/dav/tests/unit/Files/FileSearchBackendTest.php index 2f8dec62480..167b68e076c 100644 --- a/apps/dav/tests/unit/Files/FileSearchBackendTest.php +++ b/apps/dav/tests/unit/Files/FileSearchBackendTest.php @@ -133,9 +133,9 @@ class FileSearchBackendTest extends TestCase { [], $this->user )) - ->will($this->returnValue([ + ->willReturn([ new \OC\Files\Node\Folder($this->rootFolder, $this->view, '/test/path') - ])); + ]); $query = $this->getBasicQuery(\SearchDAV\Query\Operator::OPERATION_EQUAL, '{DAV:}displayname', 'foo'); $result = $this->search->search($query); @@ -162,9 +162,9 @@ class FileSearchBackendTest extends TestCase { [], $this->user )) - ->will($this->returnValue([ + ->willReturn([ new \OC\Files\Node\Folder($this->rootFolder, $this->view, '/test/path') - ])); + ]); $query = $this->getBasicQuery(\SearchDAV\Query\Operator::OPERATION_EQUAL, '{DAV:}getcontenttype', 'foo'); $result = $this->search->search($query); @@ -191,9 +191,9 @@ class FileSearchBackendTest extends TestCase { [], $this->user )) - ->will($this->returnValue([ + ->willReturn([ new \OC\Files\Node\Folder($this->rootFolder, $this->view, '/test/path') - ])); + ]); $query = $this->getBasicQuery(\SearchDAV\Query\Operator::OPERATION_GREATER_THAN, FilesPlugin::SIZE_PROPERTYNAME, 10); $result = $this->search->search($query); @@ -220,9 +220,9 @@ class FileSearchBackendTest extends TestCase { [], $this->user )) - ->will($this->returnValue([ + ->willReturn([ new \OC\Files\Node\Folder($this->rootFolder, $this->view, '/test/path') - ])); + ]); $query = $this->getBasicQuery(\SearchDAV\Query\Operator::OPERATION_GREATER_THAN, '{DAV:}getlastmodified', 10); $result = $this->search->search($query); @@ -249,9 +249,9 @@ class FileSearchBackendTest extends TestCase { [], $this->user )) - ->will($this->returnValue([ + ->willReturn([ new \OC\Files\Node\Folder($this->rootFolder, $this->view, '/test/path') - ])); + ]); $query = $this->getBasicQuery(\SearchDAV\Query\Operator::OPERATION_IS_COLLECTION, 'yes'); $result = $this->search->search($query); @@ -320,12 +320,12 @@ class FileSearchBackendTest extends TestCase { $receivedQuery = null; $this->searchFolder ->method('search') - ->will($this->returnCallback(function ($query) use (&$receivedQuery) { + ->willReturnCallback(function ($query) use (&$receivedQuery) { $receivedQuery = $query; return [ new \OC\Files\Node\Folder($this->rootFolder, $this->view, '/test/path') ]; - })); + }); $query = $this->getBasicQuery(\SearchDAV\Query\Operator::OPERATION_EQUAL, FilesPlugin::OWNER_ID_PROPERTYNAME, $this->user->getUID()); $this->search->search($query); @@ -349,12 +349,12 @@ class FileSearchBackendTest extends TestCase { $receivedQuery = null; $this->searchFolder ->method('search') - ->will($this->returnCallback(function ($query) use (&$receivedQuery) { + ->willReturnCallback(function ($query) use (&$receivedQuery) { $receivedQuery = $query; return [ new \OC\Files\Node\Folder($this->rootFolder, $this->view, '/test/path') ]; - })); + }); $query = $this->getBasicQuery(\SearchDAV\Query\Operator::OPERATION_EQUAL, FilesPlugin::OWNER_ID_PROPERTYNAME, $this->user->getUID()); $query->where = new \SearchDAV\Query\Operator( |