summaryrefslogtreecommitdiffstats
path: root/tests/lib/Authentication
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Authentication')
-rw-r--r--tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php4
-rw-r--r--tests/lib/Authentication/TwoFactorAuth/MandatoryTwoFactorTest.php4
-rw-r--r--tests/lib/Authentication/TwoFactorAuth/RegistryTest.php4
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php b/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php
index c9dc3d6ef4a..357200e24b4 100644
--- a/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php
+++ b/tests/lib/Authentication/Token/PublicKeyTokenProviderTest.php
@@ -285,7 +285,7 @@ class PublicKeyTokenProviderTest extends TestCase {
$this->mapper
->expects($this->at(2))
->method('delete')
- ->with($this->callback(function($token) use ($oldToken) {
+ ->with($this->callback(function ($token) use ($oldToken) {
return $token === $oldToken;
}));
@@ -325,7 +325,7 @@ class PublicKeyTokenProviderTest extends TestCase {
$this->mapper
->expects($this->at(2))
->method('delete')
- ->with($this->callback(function($token) use ($oldToken) {
+ ->with($this->callback(function ($token) use ($oldToken) {
return $token === $oldToken;
}));
diff --git a/tests/lib/Authentication/TwoFactorAuth/MandatoryTwoFactorTest.php b/tests/lib/Authentication/TwoFactorAuth/MandatoryTwoFactorTest.php
index 92d072608f2..e1e401e7683 100644
--- a/tests/lib/Authentication/TwoFactorAuth/MandatoryTwoFactorTest.php
+++ b/tests/lib/Authentication/TwoFactorAuth/MandatoryTwoFactorTest.php
@@ -109,7 +109,7 @@ class MandatoryTwoFactorTest extends TestCase {
['twofactor_enforced_excluded_groups', [], []],
]);
$this->groupManager->method('isInGroup')
- ->willReturnCallback(function($user, $group) {
+ ->willReturnCallback(function ($user, $group) {
return $user === 'user123' && $group ==='twofactorers';
});
@@ -147,7 +147,7 @@ class MandatoryTwoFactorTest extends TestCase {
['twofactor_enforced_excluded_groups', [], ['yoloers']],
]);
$this->groupManager->method('isInGroup')
- ->willReturnCallback(function($user, $group) {
+ ->willReturnCallback(function ($user, $group) {
return $user === 'user123' && $group ==='yoloers';
});
diff --git a/tests/lib/Authentication/TwoFactorAuth/RegistryTest.php b/tests/lib/Authentication/TwoFactorAuth/RegistryTest.php
index 6a5ba83dc8b..5b2aa654f11 100644
--- a/tests/lib/Authentication/TwoFactorAuth/RegistryTest.php
+++ b/tests/lib/Authentication/TwoFactorAuth/RegistryTest.php
@@ -81,7 +81,7 @@ class RegistryTest extends TestCase {
->method('dispatch')
->with(
$this->equalTo(IRegistry::EVENT_PROVIDER_ENABLED),
- $this->callback(function(RegistryEvent $e) use ($user, $provider) {
+ $this->callback(function (RegistryEvent $e) use ($user, $provider) {
return $e->getUser() === $user && $e->getProvider() === $provider;
})
);
@@ -102,7 +102,7 @@ class RegistryTest extends TestCase {
->method('dispatch')
->with(
$this->equalTo(IRegistry::EVENT_PROVIDER_DISABLED),
- $this->callback(function(RegistryEvent $e) use ($user, $provider) {
+ $this->callback(function (RegistryEvent $e) use ($user, $provider) {
return $e->getUser() === $user && $e->getProvider() === $provider;
})
);