mirror of
https://github.com/ProtonMail/protoncore_android.git
synced 2026-06-14 09:54:49 +00:00
test: Fix tests with plan cycles 15 and 30 months.
This commit is contained in:
committed by
MargeBot
parent
318df814cf
commit
893ab610fe
+2
-2
@@ -129,7 +129,7 @@ class CurrentPlanTests : BaseTest() {
|
||||
fun userWithPaidPlanCardAndIAPPayment15months() {
|
||||
quark.jailUnban()
|
||||
quark.setPaymentMethods(AppStore.GooglePlay, card = true, paypal = false, inApp = true)
|
||||
val paidUserCycle15 = User(plan = Plan.MailPlus)
|
||||
val paidUserCycle15 = User(plan = Plan.VpnPlus)
|
||||
val cycle15 = PlanCycle.OTHER.apply {
|
||||
cycleDurationMonths = 15
|
||||
}
|
||||
@@ -158,7 +158,7 @@ class CurrentPlanTests : BaseTest() {
|
||||
fun userWithPaidPlanCardAndIAPPayment30months() {
|
||||
quark.jailUnban()
|
||||
quark.setPaymentMethods(AppStore.GooglePlay, card = true, paypal = false, inApp = true)
|
||||
val paidUserCycle30 = User(plan = Plan.MailPlus)
|
||||
val paidUserCycle30 = User(plan = Plan.VpnPlus)
|
||||
val cycle30 = PlanCycle.OTHER.apply {
|
||||
cycleDurationMonths = 30
|
||||
}
|
||||
|
||||
+2
-2
@@ -121,7 +121,7 @@ class UpgradePlanTests : BaseTest() {
|
||||
fun userWithPaidPlanCardAndIAPPayment15months() {
|
||||
quark.jailUnban()
|
||||
quark.setPaymentMethods(AppStore.GooglePlay, card = true, paypal = false, inApp = true)
|
||||
val paidUserCycle15 = User(plan = Plan.MailPlus)
|
||||
val paidUserCycle15 = User(plan = Plan.VpnPlus)
|
||||
val cycle15 = PlanCycle.OTHER.apply {
|
||||
cycleDurationMonths = 15
|
||||
}
|
||||
@@ -137,7 +137,7 @@ class UpgradePlanTests : BaseTest() {
|
||||
fun userWithPaidPlanCardAndIAPPayment30months() {
|
||||
quark.jailUnban()
|
||||
quark.setPaymentMethods(AppStore.GooglePlay, card = true, paypal = false, inApp = true)
|
||||
val paidUserCycle15 = User(plan = Plan.MailPlus)
|
||||
val paidUserCycle15 = User(plan = Plan.VpnPlus)
|
||||
val cycle15 = PlanCycle.OTHER.apply {
|
||||
cycleDurationMonths = 30
|
||||
}
|
||||
|
||||
@@ -195,6 +195,7 @@ public final class me/proton/core/test/quark/data/Plan : java/lang/Enum {
|
||||
public static final field Professional Lme/proton/core/test/quark/data/Plan;
|
||||
public static final field Unlimited Lme/proton/core/test/quark/data/Plan;
|
||||
public static final field Visionary Lme/proton/core/test/quark/data/Plan;
|
||||
public static final field VpnPlus Lme/proton/core/test/quark/data/Plan;
|
||||
public final fun getPlanName ()Ljava/lang/String;
|
||||
public final fun getText ()Ljava/lang/String;
|
||||
public final fun setPlanName (Ljava/lang/String;)V
|
||||
|
||||
@@ -34,6 +34,7 @@ public enum class Plan(public var planName: String, public var text: String) {
|
||||
Free("free", "Proton Free"),
|
||||
MailPlus("mail2022", "Mail Plus"),
|
||||
Unlimited("bundle2022", "Proton Unlimited"),
|
||||
VpnPlus("vpn2022", "VPN Plus"),
|
||||
Dev("", "")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user