diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-08-12 14:29:17 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-08-12 14:29:17 +0200 |
commit | 174805f5e35131c891a4b0fa8db3fea3526cfcdb (patch) | |
tree | 9aaef18d335672a1c9175257fe0ce22a52f1e543 /tests | |
parent | e18b0fca47d6f601c947c149efbbe9b15af9e792 (diff) | |
parent | a8532aa2f04c833b4b9656804cc75c4ca2eb6de9 (diff) | |
download | nextcloud-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.php | 6 |
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('')); + } } |