feat: revenue cat
This commit is contained in:
@@ -33,8 +33,8 @@ it('sends a verification email when a user registers', function () {
|
||||
->assertJsonPath('user.email', 'leon@example.com')
|
||||
->assertJsonPath('user.locale', 'fr')
|
||||
->assertJsonPath('user.emailVerified', false)
|
||||
->assertJsonPath('user.analysisAccessLevel', 'trial')
|
||||
->assertJsonPath('user.canAnalyzeMeals', true)
|
||||
->assertJsonPath('user.analysisAccessLevel', 'free')
|
||||
->assertJsonPath('user.canAnalyzeMeals', false)
|
||||
->assertJsonPath('user.physicalActivityLevel', PhysicalActivityLevel::LIGHTLY_ACTIVE->value)
|
||||
->assertJsonPath('user.weightGoal', WeightGoal::MAINTAIN_WEIGHT->value)
|
||||
->assertJsonPath('user.pacePreference', PacePreference::NORMAL->value)
|
||||
@@ -45,8 +45,7 @@ it('sends a verification email when a user registers', function () {
|
||||
$user = User::where('email', 'leon@example.com')->firstOrFail();
|
||||
|
||||
expect($user->hasVerifiedEmail())->toBeFalse()
|
||||
->and($user->trial_ends_at)->not->toBeNull()
|
||||
->and($user->trial_ends_at->isFuture())->toBeTrue()
|
||||
->and($user->subscription_expires_at)->toBeNull()
|
||||
->and($user->terms_accepted_at)->not->toBeNull();
|
||||
|
||||
$this->assertDatabaseHas('users', [
|
||||
|
||||
Reference in New Issue
Block a user