summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-08-12 14:29:17 +0200
committerRobin Appelman <icewind@owncloud.com>2014-08-12 14:29:17 +0200
commit174805f5e35131c891a4b0fa8db3fea3526cfcdb (patch)
tree9aaef18d335672a1c9175257fe0ce22a52f1e543 /tests
parente18b0fca47d6f601c947c149efbbe9b15af9e792 (diff)
parenta8532aa2f04c833b4b9656804cc75c4ca2eb6de9 (diff)
downloadnextcloud-server-174805f5e35131c891a4b0fa8db3fea3526cfcdb.tar.gz
nextcloud-server-174805f5e35131c891a4b0fa8db3fea3526cfcdb.zip
Merge pull request #9762 from owncloud/owner-public
Return the proper owner for home storages
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/storage/home.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib/files/storage/home.php b/tests/lib/files/storage/home.php
index 51315a2a556..953fcfc8a6a 100644
--- a/tests/lib/files/storage/home.php
+++ b/tests/lib/files/storage/home.php
@@ -53,6 +53,8 @@ class Home extends Storage {
*/
private $tmpDir;
+ private $userId;
+
/**
* @var \OC\User\User $user
*/
@@ -97,4 +99,8 @@ class Home extends Storage {
public function testGetCacheReturnsHomeCache() {
$this->assertInstanceOf('\OC\Files\Cache\HomeCache', $this->instance->getCache());
}
+
+ public function testGetOwner() {
+ $this->assertEquals($this->userId, $this->instance->getOwner(''));
+ }
}