create([ 'email' => 'test@example.com', ]); $dto = new ForgotPasswordDTO( email: 'test@example.com', ); $action = new SendPasswordResetLink(); $status = $action->execute($dto); expect($status)->toBe(Password::RESET_LINK_SENT); }); test('it returns user not found if email does not exist', function () { $dto = new ForgotPasswordDTO( email: 'nonexistent@example.com', ); $action = new SendPasswordResetLink(); $status = $action->execute($dto); expect($status)->toBe(Password::INVALID_USER); });