privateUserForTest function
Constructs a PrivateUser with arbitrary default values for testing.
Replaces the old PrivateUser.forTest factory.
Implementation
@visibleForTesting
PrivateUser privateUserForTest({
int id = 42,
String email = 'test@quickpatch.dev',
String jwtIssuer = 'https://accounts.google.com',
bool hasActiveSubscription = false,
String? displayName,
String? stripeCustomerId,
int? patchOverageLimit = 0,
}) => PrivateUser(
id: id,
email: email,
jwtIssuer: jwtIssuer,
hasActiveSubscription: hasActiveSubscription,
displayName: displayName,
stripeCustomerId: stripeCustomerId,
patchOverageLimit: patchOverageLimit,
);