fix: complete InvesteMoz validation and error corrections

This commit is contained in:
2026-10-29 21:47:33 +02:00
parent 63147312e2
commit daf8623441
718 changed files with 127308 additions and 20959 deletions
+16
View File
@@ -0,0 +1,16 @@
<?php
namespace Tests\Support;
use App\Models\User;
use Illuminate\Support\Facades\Crypt;
trait AuthenticatesQaActors
{
protected function actingAsWithMfa(User $actor): static
{
$actor->forceFill(['two_factor_secret' => Crypt::encryptString('SYNTHETIC-QA'), 'two_factor_confirmed_at' => now()])->save();
return $this->actingAs($actor)->withSession(['login.id' => null, 'portal.mfa_actor' => $actor->id, 'portal.mfa_at' => time()]);
}
}