aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Core/Command/TwoFactorAuth/DisableTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Core/Command/TwoFactorAuth/DisableTest.php')
-rw-r--r--tests/Core/Command/TwoFactorAuth/DisableTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/Core/Command/TwoFactorAuth/DisableTest.php b/tests/Core/Command/TwoFactorAuth/DisableTest.php
index 4c1db3b1dc2..ab6b10f8964 100644
--- a/tests/Core/Command/TwoFactorAuth/DisableTest.php
+++ b/tests/Core/Command/TwoFactorAuth/DisableTest.php
@@ -37,7 +37,7 @@ class DisableTest extends TestCase {
$this->command = new CommandTester($cmd);
}
- public function testInvalidUID() {
+ public function testInvalidUID(): void {
$this->userManager->expects($this->once())
->method('get')
->with('nope')
@@ -49,10 +49,10 @@ class DisableTest extends TestCase {
]);
$this->assertEquals(1, $rc);
- $this->assertStringContainsString("Invalid UID", $this->command->getDisplay());
+ $this->assertStringContainsString('Invalid UID', $this->command->getDisplay());
}
- public function testEnableNotSupported() {
+ public function testEnableNotSupported(): void {
$user = $this->createMock(IUser::class);
$this->userManager->expects($this->once())
->method('get')
@@ -69,10 +69,10 @@ class DisableTest extends TestCase {
]);
$this->assertEquals(2, $rc);
- $this->assertStringContainsString("The provider does not support this operation", $this->command->getDisplay());
+ $this->assertStringContainsString('The provider does not support this operation', $this->command->getDisplay());
}
- public function testEnabled() {
+ public function testEnabled(): void {
$user = $this->createMock(IUser::class);
$this->userManager->expects($this->once())
->method('get')
@@ -89,6 +89,6 @@ class DisableTest extends TestCase {
]);
$this->assertEquals(0, $rc);
- $this->assertStringContainsString("Two-factor provider totp disabled for user ricky", $this->command->getDisplay());
+ $this->assertStringContainsString('Two-factor provider totp disabled for user ricky', $this->command->getDisplay());
}
}