]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix quota tests for external storage 4816/head
authorMorris Jobke <hey@morrisjobke.de>
Thu, 11 May 2017 16:35:48 +0000 (11:35 -0500)
committerMorris Jobke <hey@morrisjobke.de>
Fri, 12 May 2017 16:32:16 +0000 (11:32 -0500)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
tests/lib/HelperStorageTest.php

index e27d5eca21d9190ca23b0bb169b2fdec10e17b6d..d42c43c5ab8f176b9fb28a6f452f35132cb60b34 100644 (file)
@@ -158,9 +158,9 @@ class HelperStorageTest extends \Test\TestCase {
                $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);
        }