Skip to content
Snippets Groups Projects
Commit 51c55a86 authored by Morris Jobke's avatar Morris Jobke
Browse files

fix quota tests for external storage


Signed-off-by: default avatarMorris Jobke <hey@morrisjobke.de>
parent 40560ca9
No related branches found
No related tags found
No related merge requests found
...@@ -158,9 +158,9 @@ class HelperStorageTest extends \Test\TestCase { ...@@ -158,9 +158,9 @@ class HelperStorageTest extends \Test\TestCase {
$config->setSystemValue('quota_include_external_storage', 'true'); $config->setSystemValue('quota_include_external_storage', 'true');
$storageInfo = \OC_Helper::getStorageInfo(''); $storageInfo = \OC_Helper::getStorageInfo('');
$this->assertEquals(12, $storageInfo['free']); $this->assertEquals(12, $storageInfo['free'], '12 bytes free in home storage');
$this->assertEquals(5, $storageInfo['used']); $this->assertEquals(22, $storageInfo['used'], '5 bytes of home storage and 17 bytes of the temporary storage are used');
$this->assertEquals(17, $storageInfo['total']); $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); $config->setSystemValue('quota_include_external_storage', $oldConfig);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment