aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/tests/Controller
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-10-26 15:31:09 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-11-07 12:25:03 +0100
commit147b29fca2f36cc0d633486e30b7694c157b26e0 (patch)
tree8b15ce10bb80276b12a07a2a90d74f13bc17abce /apps/settings/tests/Controller
parentddd13a90d81e3198d06ac35b1dd4674a87e677ad (diff)
downloadnextcloud-server-147b29fca2f36cc0d633486e30b7694c157b26e0.tar.gz
nextcloud-server-147b29fca2f36cc0d633486e30b7694c157b26e0.zip
Migrate Randomness secure check to SetupCheck API
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/settings/tests/Controller')
-rw-r--r--apps/settings/tests/Controller/CheckSetupControllerTest.php10
1 files changed, 0 insertions, 10 deletions
diff --git a/apps/settings/tests/Controller/CheckSetupControllerTest.php b/apps/settings/tests/Controller/CheckSetupControllerTest.php
index f992ecf8591..693d80744ce 100644
--- a/apps/settings/tests/Controller/CheckSetupControllerTest.php
+++ b/apps/settings/tests/Controller/CheckSetupControllerTest.php
@@ -40,7 +40,6 @@ use OC;
use OC\DB\Connection;
use OC\IntegrityCheck\Checker;
use OC\MemoryInfo;
-use OC\Security\SecureRandom;
use OCA\Settings\Controller\CheckSetupController;
use OCP\App\IAppManager;
use OCP\AppFramework\Http;
@@ -100,8 +99,6 @@ class CheckSetupControllerTest extends TestCase {
private $dateTimeFormatter;
/** @var MemoryInfo|MockObject */
private $memoryInfo;
- /** @var SecureRandom|\PHPUnit\Framework\MockObject\MockObject */
- private $secureRandom;
/** @var IniGetWrapper|\PHPUnit\Framework\MockObject\MockObject */
private $iniGetWrapper;
/** @var IDBConnection|\PHPUnit\Framework\MockObject\MockObject */
@@ -154,7 +151,6 @@ class CheckSetupControllerTest extends TestCase {
$this->memoryInfo = $this->getMockBuilder(MemoryInfo::class)
->setMethods(['isMemoryLimitSufficient',])
->getMock();
- $this->secureRandom = $this->getMockBuilder(SecureRandom::class)->getMock();
$this->iniGetWrapper = $this->getMockBuilder(IniGetWrapper::class)->getMock();
$this->connection = $this->getMockBuilder(IDBConnection::class)
->disableOriginalConstructor()->getMock();
@@ -178,7 +174,6 @@ class CheckSetupControllerTest extends TestCase {
$this->lockingProvider,
$this->dateTimeFormatter,
$this->memoryInfo,
- $this->secureRandom,
$this->iniGetWrapper,
$this->connection,
$this->throttler,
@@ -443,8 +438,6 @@ class CheckSetupControllerTest extends TestCase {
'backgroundJobsUrl' => 'https://example.org',
],
'cronErrors' => [],
- 'isRandomnessSecure' => self::invokePrivate($this->checkSetupController, 'isRandomnessSecure'),
- 'securityDocs' => 'https://docs.example.org/server/8.1/admin_manual/configuration_server/hardening.html',
'isUsedTlsLibOutdated' => '',
'forwardedForHeadersWorking' => false,
'reverseProxyDocs' => 'reverse-proxy-doc-link',
@@ -495,7 +488,6 @@ class CheckSetupControllerTest extends TestCase {
$this->lockingProvider,
$this->dateTimeFormatter,
$this->memoryInfo,
- $this->secureRandom,
$this->iniGetWrapper,
$this->connection,
$this->throttler,
@@ -1224,7 +1216,6 @@ Array
$this->lockingProvider,
$this->dateTimeFormatter,
$this->memoryInfo,
- $this->secureRandom,
$this->iniGetWrapper,
$this->connection,
$this->throttler,
@@ -1280,7 +1271,6 @@ Array
$this->lockingProvider,
$this->dateTimeFormatter,
$this->memoryInfo,
- $this->secureRandom,
$this->iniGetWrapper,
$this->connection,
$this->throttler,