summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 20:11:43 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-07 20:42:38 +0200
commitc95d5c77d7a9e4e1e10ea4a04c7548ac89a19ca3 (patch)
tree47fb84ad4fb514bdc4db363537a2aea066a1c284 /tests
parentf167e65d4904cdc1b2516a1058d48d4a9d22b5e0 (diff)
downloadnextcloud-server-c95d5c77d7a9e4e1e10ea4a04c7548ac89a19ca3.tar.gz
nextcloud-server-c95d5c77d7a9e4e1e10ea4a04c7548ac89a19ca3.zip
Fix getMock LegacyHelperTest
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/LegacyHelperTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/LegacyHelperTest.php b/tests/lib/LegacyHelperTest.php
index d8b1a82c271..faea95190ec 100644
--- a/tests/lib/LegacyHelperTest.php
+++ b/tests/lib/LegacyHelperTest.php
@@ -8,6 +8,7 @@
namespace Test;
+use OC\Files\View;
use OC_Helper;
class LegacyHelperTest extends \Test\TestCase {
@@ -129,7 +130,7 @@ class LegacyHelperTest extends \Test\TestCase {
}
function testBuildNotExistingFileNameForView() {
- $viewMock = $this->getMock('\OC\Files\View', array(), array(), '', false);
+ $viewMock = $this->createMock(View::class);
$this->assertEquals('/filename', OC_Helper::buildNotExistingFileNameForView('/', 'filename', $viewMock));
$this->assertEquals('dir/filename.ext', OC_Helper::buildNotExistingFileNameForView('dir', 'filename.ext', $viewMock));