aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-10-09 13:00:24 +0200
committerJoas Schilling <coding@schilljs.com>2017-10-09 13:00:24 +0200
commit281f0420938ad55234f17a3649b2eca218fca5a3 (patch)
treeb1ea6e8e9c52a272bf9c18754e82bb7a71f77312 /apps/files_trashbin
parentdbaad22472a2ed9cd9033e3ef0a82b5f7530eec2 (diff)
downloadnextcloud-server-281f0420938ad55234f17a3649b2eca218fca5a3.tar.gz
nextcloud-server-281f0420938ad55234f17a3649b2eca218fca5a3.zip
Don't use deprecated $this->getMock() method
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/tests/StorageTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_trashbin/tests/StorageTest.php b/apps/files_trashbin/tests/StorageTest.php
index 2e3ddf2e6bf..bdddafcf016 100644
--- a/apps/files_trashbin/tests/StorageTest.php
+++ b/apps/files_trashbin/tests/StorageTest.php
@@ -530,7 +530,7 @@ class StorageTest extends \Test\TestCase {
*/
public function testShouldMoveToTrash($mountPoint, $path, $userExists, $appDisablesTrash, $expected) {
$fileID = 1;
- $cache = $this->getMock(ICache::class);
+ $cache = $this->createMock(ICache::class);
$cache->expects($this->any())->method('getId')->willReturn($fileID);
$tmpStorage = $this->getMockBuilder('\OC\Files\Storage\Temporary')
->disableOriginalConstructor()->getMock($cache);
@@ -542,7 +542,7 @@ class StorageTest extends \Test\TestCase {
$logger = $this->getMockBuilder(ILogger::class)->getMock();
$eventDispatcher = $this->getMockBuilder(EventDispatcher::class)
->disableOriginalConstructor()->getMock();
- $rootFolder = $this->getMock(IRootFolder::class);
+ $rootFolder = $this->createMock(IRootFolder::class);
$node = $this->getMockBuilder(Node::class)->disableOriginalConstructor()->getMock();
$event = $this->getMockBuilder(MoveToTrashEvent::class)->disableOriginalConstructor()->getMock();
$event->expects($this->any())->method('shouldMoveToTrashBin')->willReturn(!$appDisablesTrash);