refactor: auto refactor via rector
This commit is contained in:
@@ -4,7 +4,7 @@ use App\Models\User;
|
||||
use Laravel\Fortify\Features;
|
||||
use Livewire\Livewire;
|
||||
|
||||
beforeEach(function () {
|
||||
beforeEach(function (): void {
|
||||
if (! Features::canManageTwoFactorAuthentication()) {
|
||||
$this->markTestSkipped('Two-factor authentication is not enabled.');
|
||||
}
|
||||
@@ -15,7 +15,7 @@ beforeEach(function () {
|
||||
]);
|
||||
});
|
||||
|
||||
test('two factor settings page can be rendered', function () {
|
||||
test('two factor settings page can be rendered', function (): void {
|
||||
$user = User::factory()->create();
|
||||
|
||||
$this->actingAs($user)
|
||||
@@ -26,7 +26,7 @@ test('two factor settings page can be rendered', function () {
|
||||
->assertSee('Disabled');
|
||||
});
|
||||
|
||||
test('two factor settings page requires password confirmation when enabled', function () {
|
||||
test('two factor settings page requires password confirmation when enabled', function (): void {
|
||||
$user = User::factory()->create();
|
||||
|
||||
$response = $this->actingAs($user)
|
||||
@@ -35,7 +35,7 @@ test('two factor settings page requires password confirmation when enabled', fun
|
||||
$response->assertRedirect(route('password.confirm'));
|
||||
});
|
||||
|
||||
test('two factor settings page returns forbidden response when two factor is disabled', function () {
|
||||
test('two factor settings page returns forbidden response when two factor is disabled', function (): void {
|
||||
config(['fortify.features' => []]);
|
||||
|
||||
$user = User::factory()->create();
|
||||
@@ -47,7 +47,7 @@ test('two factor settings page returns forbidden response when two factor is dis
|
||||
$response->assertForbidden();
|
||||
});
|
||||
|
||||
test('two factor authentication disabled when confirmation abandoned between requests', function () {
|
||||
test('two factor authentication disabled when confirmation abandoned between requests', function (): void {
|
||||
$user = User::factory()->create();
|
||||
|
||||
$user->forceFill([
|
||||
|
||||
Reference in New Issue
Block a user