feat(auth): implement admin app password reset attempt functionality
This commit is contained in:
@@ -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),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user