mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
Add test for homestorage getOwner
This commit is contained in:
parent
e9de20952a
commit
a8532aa2f0
1 changed files with 6 additions and 0 deletions
|
|
@ -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(''));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue