aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-05-02 20:35:03 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-05-02 20:35:03 +0200
commit95fe55f9e7215e8de77e80ad418e4d199a13fdb5 (patch)
treec66c54f3ace308349e3e53af241de9364333522b /apps/files/tests
parentc92c577b5e05ea1d932c6739b87fea8beea21e1b (diff)
downloadnextcloud-server-95fe55f9e7215e8de77e80ad418e4d199a13fdb5.tar.gz
nextcloud-server-95fe55f9e7215e8de77e80ad418e4d199a13fdb5.zip
fix broken unit test
Diffstat (limited to 'apps/files/tests')
-rw-r--r--apps/files/tests/ajax_rename.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/files/tests/ajax_rename.php b/apps/files/tests/ajax_rename.php
index 74ca1e4495d..1b69e438061 100644
--- a/apps/files/tests/ajax_rename.php
+++ b/apps/files/tests/ajax_rename.php
@@ -24,6 +24,16 @@
class Test_OC_Files_App_Rename extends \PHPUnit_Framework_TestCase {
private static $user;
+ /**
+ * @var PHPUnit_Framework_MockObject_MockObject
+ */
+ private $viewMock;
+
+ /**
+ * @var \OCA\Files\App
+ */
+ private $files;
+
function setUp() {
// mock OC_L10n
if (!self::$user) {
@@ -72,7 +82,7 @@ class Test_OC_Files_App_Rename extends \PHPUnit_Framework_TestCase {
->method('getFileInfo')
->will($this->returnValue(new \OC\Files\FileInfo(
'/',
- null,
+ new \OC\Files\Storage\Local(array('datadir' => '/')),
'/',
array(
'fileid' => 123,