Skip to content

Commit

Permalink
test(predict): fix contact values in the integration tests
Browse files Browse the repository at this point in the history
SUITEDEV-36367

Co-authored-by: LasOri <[email protected]>
Co-authored-by: megamegax <[email protected]>
  • Loading branch information
3 people committed Aug 7, 2024
1 parent eb215c6 commit dde1a4d
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class PredictIntegrationTest : AnnotationSpec() {
val connectionRule = ConnectionRule(application)

companion object {
private const val CONTACT_FIELD_ID = 3
private const val CONTACT_FIELD_ID = 62470
private const val MERCHANT_ID = "1428C8EE286EC34B"
private const val OTHER_MERCHANT_ID = "test_1428C8EE286EC34B"
const val ITEM1 = "12800"
Expand Down Expand Up @@ -509,16 +509,15 @@ class PredictIntegrationTest : AnnotationSpec() {
clientStateStorage.set("predict-integration-test")
}


Emarsys.setContact(CONTACT_FIELD_ID, "[email protected]")
Emarsys.setContact(CONTACT_FIELD_ID, "[email protected]")
testMultipleInvocations()
}

@Test
fun testConfig_changeMerchantId() {
val originalMerchantId = Emarsys.config.merchantId
Emarsys.config.changeMerchantId(OTHER_MERCHANT_ID)
originalMerchantId shouldNotBe Emarsys.config.applicationCode
originalMerchantId shouldNotBe Emarsys.config.merchantId
Emarsys.config.merchantId shouldBe OTHER_MERCHANT_ID
}

Expand Down

0 comments on commit dde1a4d

Please sign in to comment.