Skip to content

Commit

Permalink
fix quota tests for external storage
Browse files Browse the repository at this point in the history
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
  • Loading branch information
MorrisJobke committed May 11, 2017
1 parent 46b398e commit d2e24d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/lib/HelperStorageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ function testGetStorageInfoIncludingExtStorageWithNoUserQuota() {
$config->setSystemValue('quota_include_external_storage', 'true');

$storageInfo = \OC_Helper::getStorageInfo('');
$this->assertEquals(12, $storageInfo['free']);
$this->assertEquals(5, $storageInfo['used']);
$this->assertEquals(17, $storageInfo['total']);
$this->assertEquals(12, $storageInfo['free'], '12 bytes free in home storage');
$this->assertEquals(22, $storageInfo['used'], '5 bytes of home storage and 17 bytes of the temporary storage are used');
$this->assertEquals(34, $storageInfo['total'], '5 bytes used and 12 bytes free in home storage as well as 17 bytes used in temporary storage');

$config->setSystemValue('quota_include_external_storage', $oldConfig);
}
Expand Down

0 comments on commit d2e24d8

Please sign in to comment.