mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Fix getMock LegacyHelperTest
This commit is contained in:
parent
f167e65d49
commit
c95d5c77d7
1 changed files with 2 additions and 1 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue