Add test for homestorage getOwner
This commit is contained in:
parent
e9de20952a
commit
a8532aa2f0
|
@ -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 New Issue