Add test for homestorage getOwner

This commit is contained in:
Robin Appelman 2014-07-22 16:30:25 +02:00
parent e9de20952a
commit a8532aa2f0
1 changed files with 6 additions and 0 deletions

View File

@ -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(''));
}
}