diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-07-22 16:30:25 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-07-22 16:30:25 +0200 |
commit | a8532aa2f04c833b4b9656804cc75c4ca2eb6de9 (patch) | |
tree | c7521b1ae3cad3b4c3359883ee26a73fd52b1d52 /tests/lib | |
parent | e9de20952a4f2f2793d0eb126546c5128d28096e (diff) | |
download | nextcloud-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.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('')); + } } |