aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Support/Subscription/RegistryTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Support/Subscription/RegistryTest.php')
-rw-r--r--tests/lib/Support/Subscription/RegistryTest.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/lib/Support/Subscription/RegistryTest.php b/tests/lib/Support/Subscription/RegistryTest.php
index de7f7600496..869c1498c41 100644
--- a/tests/lib/Support/Subscription/RegistryTest.php
+++ b/tests/lib/Support/Subscription/RegistryTest.php
@@ -66,13 +66,13 @@ class RegistryTest extends TestCase {
/**
* Doesn't assert anything, just checks whether anything "explodes"
*/
- public function testDelegateToNone() {
+ public function testDelegateToNone(): void {
$this->registry->delegateHasValidSubscription();
$this->addToAssertionCount(1);
}
- public function testDoubleRegistration() {
+ public function testDoubleRegistration(): void {
$this->expectException(\OCP\Support\Subscription\Exception\AlreadyRegisteredException::class);
/* @var ISubscription $subscription1 */
@@ -83,12 +83,12 @@ class RegistryTest extends TestCase {
$this->registry->register($subscription2);
}
- public function testNoSupportApp() {
+ public function testNoSupportApp(): void {
$this->assertSame([], $this->registry->delegateGetSupportedApps());
$this->assertSame(false, $this->registry->delegateHasValidSubscription());
}
- public function testDelegateHasValidSubscription() {
+ public function testDelegateHasValidSubscription(): void {
/* @var ISubscription|\PHPUnit\Framework\MockObject\MockObject $subscription */
$subscription = $this->createMock(ISubscription::class);
$subscription->expects($this->once())
@@ -99,7 +99,7 @@ class RegistryTest extends TestCase {
$this->assertSame(true, $this->registry->delegateHasValidSubscription());
}
- public function testDelegateHasValidSubscriptionConfig() {
+ public function testDelegateHasValidSubscriptionConfig(): void {
/* @var ISubscription|\PHPUnit\Framework\MockObject\MockObject $subscription */
$this->config->expects($this->once())
->method('getSystemValueBool')
@@ -109,7 +109,7 @@ class RegistryTest extends TestCase {
$this->assertSame(true, $this->registry->delegateHasValidSubscription());
}
- public function testDelegateHasExtendedSupport() {
+ public function testDelegateHasExtendedSupport(): void {
/* @var ISubscription|\PHPUnit\Framework\MockObject\MockObject $subscription */
$subscription = $this->createMock(ISubscription::class);
$subscription->expects($this->once())
@@ -121,7 +121,7 @@ class RegistryTest extends TestCase {
}
- public function testDelegateGetSupportedApps() {
+ public function testDelegateGetSupportedApps(): void {
/* @var ISupportedApps|\PHPUnit\Framework\MockObject\MockObject $subscription */
$subscription = $this->createMock(ISupportedApps::class);
$subscription->expects($this->once())
@@ -132,7 +132,7 @@ class RegistryTest extends TestCase {
$this->assertSame(['abc'], $this->registry->delegateGetSupportedApps());
}
- public function testSubscriptionService() {
+ public function testSubscriptionService(): void {
$this->serverContainer->method('query')
->with(DummySubscription::class)
->willReturn(new DummySubscription(true, false, false));
@@ -142,7 +142,7 @@ class RegistryTest extends TestCase {
$this->assertFalse($this->registry->delegateHasExtendedSupport());
}
- public function testDelegateIsHardUserLimitReached() {
+ public function testDelegateIsHardUserLimitReached(): void {
/* @var ISubscription|\PHPUnit\Framework\MockObject\MockObject $subscription */
$subscription = $this->createMock(ISubscription::class);
$subscription->expects($this->once())
@@ -163,7 +163,7 @@ class RegistryTest extends TestCase {
$this->assertSame(true, $this->registry->delegateIsHardUserLimitReached($this->notificationManager));
}
- public function testDelegateIsHardUserLimitReachedWithoutSupportApp() {
+ public function testDelegateIsHardUserLimitReachedWithoutSupportApp(): void {
$this->config->expects($this->once())
->method('getSystemValueBool')
->with('one-click-instance')
@@ -185,7 +185,7 @@ class RegistryTest extends TestCase {
/**
* @dataProvider dataForUserLimitCheck
*/
- public function testDelegateIsHardUserLimitReachedWithoutSupportAppAndUserCount($userLimit, $userCount, $disabledUsers, $expectedResult) {
+ public function testDelegateIsHardUserLimitReachedWithoutSupportAppAndUserCount($userLimit, $userCount, $disabledUsers, $expectedResult): void {
$this->config->expects($this->once())
->method('getSystemValueBool')
->with('one-click-instance')