aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-07-22 16:30:25 +0200
committerRobin Appelman <icewind@owncloud.com>2014-07-22 16:30:25 +0200
commita8532aa2f04c833b4b9656804cc75c4ca2eb6de9 (patch)
treec7521b1ae3cad3b4c3359883ee26a73fd52b1d52 /tests/lib
parente9de20952a4f2f2793d0eb126546c5128d28096e (diff)
downloadnextcloud-server-a8532aa2f04c833b4b9656804cc75c4ca2eb6de9.tar.gz
nextcloud-server-a8532aa2f04c833b4b9656804cc75c4ca2eb6de9.zip
Add test for homestorage getOwner
Diffstat (limited to 'tests/lib')
-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(''));
+ }
}