mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
Add PHP type hints for Laravel 10
This commit is contained in:
committed by
HolgerHatGarKeineNode
parent
ad55c69b51
commit
98a430c91c
@@ -13,7 +13,7 @@ class TwoFactorAuthenticationSettingsTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
public function test_two_factor_authentication_can_be_enabled()
|
||||
public function test_two_factor_authentication_can_be_enabled(): void
|
||||
{
|
||||
if (! Features::canManageTwoFactorAuthentication()) {
|
||||
return $this->markTestSkipped('Two factor authentication is not enabled.');
|
||||
@@ -32,7 +32,7 @@ class TwoFactorAuthenticationSettingsTest extends TestCase
|
||||
$this->assertCount(8, $user->recoveryCodes());
|
||||
}
|
||||
|
||||
public function test_recovery_codes_can_be_regenerated()
|
||||
public function test_recovery_codes_can_be_regenerated(): void
|
||||
{
|
||||
if (! Features::canManageTwoFactorAuthentication()) {
|
||||
return $this->markTestSkipped('Two factor authentication is not enabled.');
|
||||
@@ -54,7 +54,7 @@ class TwoFactorAuthenticationSettingsTest extends TestCase
|
||||
$this->assertCount(8, array_diff($user->recoveryCodes(), $user->fresh()->recoveryCodes()));
|
||||
}
|
||||
|
||||
public function test_two_factor_authentication_can_be_disabled()
|
||||
public function test_two_factor_authentication_can_be_disabled(): void
|
||||
{
|
||||
if (! Features::canManageTwoFactorAuthentication()) {
|
||||
return $this->markTestSkipped('Two factor authentication is not enabled.');
|
||||
|
||||
Reference in New Issue
Block a user