actingAs()/Livewire::actingAs() call Auth::shouldUse(), which made every existing test for this trait pass identically whether confirmPassword() asked for the right guard explicitly or just read whichever guard happened to be default — reverting the explicit guard() call to a bare auth()->user() passed the full suite. This test signs the operator in without actingAs and deliberately decouples the ambient default guard from their session before calling confirmPassword(), so only the explicit resolution can succeed. |
||
|---|---|---|
| .. | ||
| Feature | ||
| Support | ||
| Unit | ||
| Pest.php | ||
| TestCase.php | ||