feat(auth): implement admin app password reset attempt functionality

This commit is contained in:
2026-08-13 12:15:14 -03:00
parent a2592987f5
commit e33ebf0af1
11 changed files with 283 additions and 43 deletions

View File

@@ -17,7 +17,7 @@ class SendPasswordResetEmailTest extends TestCase
$mailService = \Mockery::mock(NotificationMailService::class);
$mailService->shouldReceive('sendPasswordResetCode')
->once()
->with(10, 'tenant-test')
->with(10, 'tenant-test', PasswordResetRequested::CHANNEL_STOREFRONT)
->andThrow($exception);
$this->app->instance(NotificationMailService::class, $mailService);
@@ -27,6 +27,7 @@ class SendPasswordResetEmailTest extends TestCase
'Failed to send password reset email.',
\Mockery::on(fn (array $context): bool => $context['attempt_id'] === 10
&& $context['tenant_code'] === 'tenant-test'
&& $context['channel'] === PasswordResetRequested::CHANNEL_STOREFRONT
&& $context['exception'] === $exception),
);