diff options
author | Joas Schilling <coding@schilljs.com> | 2021-10-20 11:29:45 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-10-23 01:54:50 +0300 |
commit | b578a1e8b56f6b3ecf7dee837af6bd8265f9c0b0 (patch) | |
tree | e483d50ca038882c3521782aff6574eb0bda0f31 /tests/lib/Support | |
parent | 1895a6dc573cdb46cfa1987e25d45781623fdb7d (diff) |
Fair use of push notifications
We want to keep offering our push notification service for free, but large
users overload our infrastructure. For this reason we have to rate-limit the
use of push notifications. If you need this feature, consider setting up your
own push server or using Nextcloud Enterprise.
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/Support')
-rw-r--r-- | tests/lib/Support/Subscription/RegistryTest.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/lib/Support/Subscription/RegistryTest.php b/tests/lib/Support/Subscription/RegistryTest.php index 5349b041d8b..260232ac95d 100644 --- a/tests/lib/Support/Subscription/RegistryTest.php +++ b/tests/lib/Support/Subscription/RegistryTest.php @@ -75,8 +75,7 @@ class RegistryTest extends TestCase { $this->serverContainer, $this->userManager, $this->groupManager, - $this->logger, - $this->notificationManager + $this->logger ); } @@ -177,7 +176,7 @@ class RegistryTest extends TestCase { ->method('get') ->willReturn($dummyGroup); - $this->assertSame(true, $this->registry->delegateIsHardUserLimitReached()); + $this->assertSame(true, $this->registry->delegateIsHardUserLimitReached($this->notificationManager)); } public function testDelegateIsHardUserLimitReachedWithoutSupportApp() { @@ -186,7 +185,7 @@ class RegistryTest extends TestCase { ->with('one-click-instance') ->willReturn(false); - $this->assertSame(false, $this->registry->delegateIsHardUserLimitReached()); + $this->assertSame(false, $this->registry->delegateIsHardUserLimitReached($this->notificationManager)); } public function dataForUserLimitCheck() { @@ -237,6 +236,6 @@ class RegistryTest extends TestCase { ->willReturn($dummyGroup); } - $this->assertSame($expectedResult, $this->registry->delegateIsHardUserLimitReached()); + $this->assertSame($expectedResult, $this->registry->delegateIsHardUserLimitReached($this->notificationManager)); } } |