[Pkg-owncloud-commits] [owncloud] 37/104: Pass config object in testGetHomeNotSupported

David Prévot taffit at moszumanska.debian.org
Sat Jan 18 13:33:38 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit a8fd55d90df1c8db3ef096d3e85d0b83336f10fb
Author: Robin Appelman <icewind at owncloud.com>
Date:   Fri Dec 20 13:57:22 2013 +0100

    Pass config object in testGetHomeNotSupported
---
 tests/lib/user/user.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/lib/user/user.php b/tests/lib/user/user.php
index 0bbcda0..3f90432 100644
--- a/tests/lib/user/user.php
+++ b/tests/lib/user/user.php
@@ -9,6 +9,7 @@
 
 namespace Test\User;
 
+use OC\AllConfig;
 use OC\Hooks\PublicEmitter;
 
 class User extends \PHPUnit_Framework_TestCase {
@@ -205,7 +206,9 @@ class User extends \PHPUnit_Framework_TestCase {
 			->method('implementsActions')
 			->will($this->returnValue(false));
 
-		$user = new \OC\User\User('foo', $backend);
+		$allConfig = new AllConfig();
+
+		$user = new \OC\User\User('foo', $backend, null, $allConfig);
 		$this->assertEquals(\OC_Config::getValue("datadirectory", \OC::$SERVERROOT . "/data") . '/foo', $user->getHome());
 	}
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list