|
|
|
@ -295,6 +295,10 @@ class DirectoryTest extends \Test\TestCase { |
|
|
|
|
->method('getStorage') |
|
|
|
|
->willReturn($storage); |
|
|
|
|
|
|
|
|
|
$this->view->expects($this->once()) |
|
|
|
|
->method('getFileInfo') |
|
|
|
|
->willReturn($this->info); |
|
|
|
|
|
|
|
|
|
$dir = new Directory($this->view, $this->info); |
|
|
|
|
$this->assertEquals([200, -3], $dir->getQuotaInfo()); //200 used, unlimited |
|
|
|
|
} |
|
|
|
@ -327,6 +331,10 @@ class DirectoryTest extends \Test\TestCase { |
|
|
|
|
->method('getStorage') |
|
|
|
|
->willReturn($storage); |
|
|
|
|
|
|
|
|
|
$this->view->expects($this->once()) |
|
|
|
|
->method('getFileInfo') |
|
|
|
|
->willReturn($this->info); |
|
|
|
|
|
|
|
|
|
$dir = new Directory($this->view, $this->info); |
|
|
|
|
$this->assertEquals([200, 800], $dir->getQuotaInfo()); //200 used, 800 free |
|
|
|
|
} |
|
|
|
|