extensions/test_helpers library

Functions

organizationForTest({int id = 42, String name = 'Test Organization', OrganizationType organizationType = OrganizationType.personal, DateTime? createdAt, DateTime? updatedAt}) Organization
Constructs an Organization with arbitrary default values for testing.
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
Constructs a PrivateUser with arbitrary default values for testing.
publicUserFromPrivateUser(PrivateUser fullUser) PublicUser
Projects a PrivateUser down to a PublicUser (drops sensitive fields). Replaces the old PublicUser.fromPrivateUser factory.