@@ -77,6 +77,7 @@ class BackendTest {
77
77
78
78
@Before
79
79
fun setup () {
80
+ every { mockClient.appConfig } returns mockAppConfig
80
81
mockkObject(CustomerInfoFactory )
81
82
receivedError = null
82
83
receivedOfferingsJSON = null
@@ -97,6 +98,7 @@ class BackendTest {
97
98
private val mockAppConfig: AppConfig = mockk<AppConfig >().apply {
98
99
every { baseURL } returns mockBaseURL
99
100
every { customEntitlementComputation } returns false
101
+ every { fallbackBaseURLs } returns emptyList()
100
102
}
101
103
private val dispatcher = spyk(SyncDispatcher ())
102
104
private val backendHelper = BackendHelper (API_KEY , dispatcher, mockAppConfig, mockClient)
@@ -804,7 +806,8 @@ class BackendTest {
804
806
Endpoint .PostReceipt ,
805
807
any(),
806
808
any(),
807
- any()
809
+ any(),
810
+ fallbackBaseURLs = any(),
808
811
)
809
812
}
810
813
verify(exactly = 2 ) {
@@ -813,7 +816,8 @@ class BackendTest {
813
816
Endpoint .GetCustomerInfo (appUserID),
814
817
body = null ,
815
818
postFieldsToSign = null ,
816
- any()
819
+ any(),
820
+ fallbackBaseURLs = any(),
817
821
)
818
822
}
819
823
}
@@ -1544,7 +1548,8 @@ class BackendTest {
1544
1548
Endpoint .GetOfferings (appUserID),
1545
1549
body = null ,
1546
1550
postFieldsToSign = null ,
1547
- any()
1551
+ any(),
1552
+ fallbackBaseURLs = any(),
1548
1553
)
1549
1554
}
1550
1555
verify(exactly = 1 ) {
@@ -1553,7 +1558,8 @@ class BackendTest {
1553
1558
Endpoint .GetOfferings (" anotherUser" ),
1554
1559
body = null ,
1555
1560
postFieldsToSign = null ,
1556
- any()
1561
+ any(),
1562
+ fallbackBaseURLs = any(),
1557
1563
)
1558
1564
}
1559
1565
}
@@ -2001,7 +2007,8 @@ class BackendTest {
2001
2007
endpoint = diagnosticsEndpoint,
2002
2008
body = mapOf (" entries" to JSONArray (diagnosticsList)),
2003
2009
postFieldsToSign = null ,
2004
- requestHeaders = mapOf (" Authorization" to " Bearer TEST_API_KEY" )
2010
+ requestHeaders = mapOf (" Authorization" to " Bearer TEST_API_KEY" ),
2011
+ fallbackBaseURLs = any(),
2005
2012
)
2006
2013
}
2007
2014
}
@@ -2221,7 +2228,8 @@ class BackendTest {
2221
2228
endpoint = productEntitlementMappingEndpoint,
2222
2229
body = null ,
2223
2230
postFieldsToSign = null ,
2224
- requestHeaders = defaultAuthHeaders
2231
+ requestHeaders = defaultAuthHeaders,
2232
+ fallbackBaseURLs = any(),
2225
2233
)
2226
2234
}
2227
2235
}
0 commit comments