Prechádzať zdrojové kódy

address review and fix tests

Signed-off-by: Simon L <szaimen@e.mail.de>
Simon L 1 rok pred
rodič
commit
e2ab9bf4af

+ 3 - 1
apps/settings/tests/Controller/CheckSetupControllerTest.php

@@ -186,6 +186,7 @@ class CheckSetupControllerTest extends TestCase {
 				'hasValidTransactionIsolationLevel',
 				'hasFileinfoInstalled',
 				'hasWorkingFileLocking',
+				'hasDBFileLocking',
 				'getLastCronInfo',
 				'getSuggestedOverwriteCliURL',
 				'getCurlVersion',
@@ -504,7 +505,7 @@ class CheckSetupControllerTest extends TestCase {
 			->willReturn(true);
 		$this->checkSetupController
 			->expects($this->once())
-			->method('hasDBileLocking')
+			->method('hasDBFileLocking')
 			->willReturn(true);
 		$this->checkSetupController
 			->expects($this->once())
@@ -608,6 +609,7 @@ class CheckSetupControllerTest extends TestCase {
 				'hasValidTransactionIsolationLevel' => true,
 				'hasFileinfoInstalled' => true,
 				'hasWorkingFileLocking' => true,
+				'hasDBFileLocking' => true,
 				'suggestedOverwriteCliURL' => '',
 				'cronInfo' => [
 					'diffInSeconds' => 123,

+ 1 - 1
core/js/setupchecks.js

@@ -225,7 +225,7 @@
 					}
 					if(data.hasDBFileLocking) {
 						messages.push({
-							msg: t('core', 'The database is used for transactional file locking. This will lead to performance issues. Use redis for transactional file locking to improve the performance. See the {linkstart}documentation ↗{linkend} for more information.')
+							msg: t('core', 'The database is used for transactional file locking. To enhance performance, please configure memcache, if available. See the {linkstart}documentation ↗{linkend} for more information.')
 								.replace('{linkstart}', '<a target="_blank" rel="noreferrer noopener" class="external" href="' + OC.theme.docPlaceholderUrl.replace('PLACEHOLDER', 'admin-transactional-locking') + '">')
 								.replace('{linkend}', '</a>'),
 							type: OC.SetupChecks.MESSAGE_TYPE_INFO

+ 1 - 1
core/js/tests/specs/setupchecksSpec.js

@@ -687,7 +687,7 @@ describe('OC.SetupChecks tests', function() {
 
 			async.done(function( data, s, x ){
 				expect(data).toEqual([{
-					msg: 'The database is used for transactional file locking. This will lead to performance issues. Use redis for transactional file locking to improve the performance. See the <a target="_blank" rel="noreferrer noopener" class="external" href="https://docs.example.org/admin-transactional-locking">documentation ↗</a> for more information.',
+					msg: 'The database is used for transactional file locking. To enhance performance, please configure memcache, if available. See the <a target="_blank" rel="noreferrer noopener" class="external" href="https://docs.example.org/admin-transactional-locking">documentation ↗</a> for more information.',
 					type: OC.SetupChecks.MESSAGE_TYPE_INFO
 				}]);
 				done();