diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-11-13 16:24:16 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-11-13 16:26:59 +0100 |
commit | fe8b5d47ae2f7281b5de237943c780d7b8f64c17 (patch) | |
tree | 3126afdcda65dbf129560ff988f26e91f2aff1e4 /apps/settings/tests | |
parent | 749523603403f11c2958a51fb64a7035d9f4eb73 (diff) | |
download | nextcloud-server-fe8b5d47ae2f7281b5de237943c780d7b8f64c17.tar.gz nextcloud-server-fe8b5d47ae2f7281b5de237943c780d7b8f64c17.zip |
Migrate Bruteforce Throttle check to SetupCheck API
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/settings/tests')
-rw-r--r-- | apps/settings/tests/Controller/CheckSetupControllerTest.php | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/apps/settings/tests/Controller/CheckSetupControllerTest.php b/apps/settings/tests/Controller/CheckSetupControllerTest.php index edb05a1891e..0437d8a38b3 100644 --- a/apps/settings/tests/Controller/CheckSetupControllerTest.php +++ b/apps/settings/tests/Controller/CheckSetupControllerTest.php @@ -57,7 +57,6 @@ use OCP\ITempManager; use OCP\IURLGenerator; use OCP\Lock\ILockingProvider; use OCP\Notification\IManager; -use OCP\Security\Bruteforce\IThrottler; use OCP\SetupCheck\ISetupCheckManager; use PHPUnit\Framework\MockObject\MockObject; use Psr\Http\Message\ResponseInterface; @@ -91,7 +90,6 @@ class CheckSetupControllerTest extends TestCase { private $dispatcher; /** @var Connection|\PHPUnit\Framework\MockObject\MockObject */ private $db; - private IThrottler $throttler; /** @var ILockingProvider|\PHPUnit\Framework\MockObject\MockObject */ private $lockingProvider; /** @var IDateTimeFormatter|\PHPUnit\Framework\MockObject\MockObject */ @@ -142,7 +140,6 @@ class CheckSetupControllerTest extends TestCase { $this->logger = $this->getMockBuilder(LoggerInterface::class)->getMock(); $this->db = $this->getMockBuilder(Connection::class) ->disableOriginalConstructor()->getMock(); - $this->throttler = $this->createMock(IThrottler::class); $this->lockingProvider = $this->getMockBuilder(ILockingProvider::class)->getMock(); $this->dateTimeFormatter = $this->getMockBuilder(IDateTimeFormatter::class)->getMock(); $this->iniGetWrapper = $this->getMockBuilder(IniGetWrapper::class)->getMock(); @@ -169,7 +166,6 @@ class CheckSetupControllerTest extends TestCase { $this->dateTimeFormatter, $this->iniGetWrapper, $this->connection, - $this->throttler, $this->tempManager, $this->notificationManager, $this->appManager, @@ -441,8 +437,6 @@ class CheckSetupControllerTest extends TestCase { 'imageMagickLacksSVGSupport' => false, 'isFairUseOfFreePushService' => false, 'temporaryDirectoryWritable' => false, - 'isBruteforceThrottled' => false, - 'bruteforceRemoteAddress' => '', 'generic' => [], ] ); @@ -466,7 +460,6 @@ class CheckSetupControllerTest extends TestCase { $this->dateTimeFormatter, $this->iniGetWrapper, $this->connection, - $this->throttler, $this->tempManager, $this->notificationManager, $this->appManager, @@ -1193,7 +1186,6 @@ Array $this->dateTimeFormatter, $this->iniGetWrapper, $this->connection, - $this->throttler, $this->tempManager, $this->notificationManager, $this->appManager, @@ -1247,7 +1239,6 @@ Array $this->dateTimeFormatter, $this->iniGetWrapper, $this->connection, - $this->throttler, $this->tempManager, $this->notificationManager, $this->appManager, |