-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(predict): fix contact values in the integration tests
SUITEDEV-36367 Co-authored-by: LasOri <[email protected]> Co-authored-by: megamegax <[email protected]>
- Loading branch information
1 parent
eb215c6
commit dde1a4d
Showing
1 changed file
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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 | ||
} | ||
|
||
|