Skip to content
Snippets Groups Projects
Commit 95fe55f9 authored by Thomas Müller's avatar Thomas Müller
Browse files

fix broken unit test

parent c92c577b
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,16 @@ ...@@ -24,6 +24,16 @@
class Test_OC_Files_App_Rename extends \PHPUnit_Framework_TestCase { class Test_OC_Files_App_Rename extends \PHPUnit_Framework_TestCase {
private static $user; private static $user;
/**
* @var PHPUnit_Framework_MockObject_MockObject
*/
private $viewMock;
/**
* @var \OCA\Files\App
*/
private $files;
function setUp() { function setUp() {
// mock OC_L10n // mock OC_L10n
if (!self::$user) { if (!self::$user) {
...@@ -72,7 +82,7 @@ class Test_OC_Files_App_Rename extends \PHPUnit_Framework_TestCase { ...@@ -72,7 +82,7 @@ class Test_OC_Files_App_Rename extends \PHPUnit_Framework_TestCase {
->method('getFileInfo') ->method('getFileInfo')
->will($this->returnValue(new \OC\Files\FileInfo( ->will($this->returnValue(new \OC\Files\FileInfo(
'/', '/',
null, new \OC\Files\Storage\Local(array('datadir' => '/')),
'/', '/',
array( array(
'fileid' => 123, 'fileid' => 123,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment