File tree Expand file tree Collapse file tree 3 files changed +69
-0
lines changed
dev/tests/acceptance/tests/functional/Magento/FunctionalTest Expand file tree Collapse file tree 3 files changed +69
-0
lines changed Original file line number Diff line number Diff line change 34
34
<entity name =" samplePrivateKey" type =" private_key" >
35
35
<data key =" value" >somePrivateKey</data >
36
36
</entity >
37
+
38
+ <!-- default configuration used to restore Magento config -->
39
+ <entity name =" defaultBraintreeConfig" type =" braintree_config_state" >
40
+ <required-entity type =" title" >defaultTitle</required-entity >
41
+ <required-entity type =" payment_action" >defaultPaymentAction</required-entity >
42
+ <required-entity type =" environment" >defaultEnvironment</required-entity >
43
+ <required-entity type =" merchant_id" >defaultMerchantId</required-entity >
44
+ <required-entity type =" public_key" >defaultPublicKey</required-entity >
45
+ <required-entity type =" private_key" >defaultPrivateKey</required-entity >
46
+ </entity >
47
+ <entity name =" defaultTitle" type =" title" >
48
+ <data key =" value" />
49
+ </entity >
50
+ <entity name =" defaultPaymentAction" type =" payment_action" >
51
+ <data key =" value" />
52
+ </entity >
53
+ <entity name =" defaultEnvironment" type =" environment" >
54
+ <data key =" value" />
55
+ </entity >
56
+ <entity name =" defaultMerchantId" type =" merchant_id" >
57
+ <data key =" value" />
58
+ </entity >
59
+ <entity name =" defaultPublicKey" type =" public_key" >
60
+ <data key =" value" />
61
+ </entity >
62
+ <entity name =" defaultPrivateKey" type =" private_key" >
63
+ <data key =" value" />
64
+ </entity >
37
65
</config >
Original file line number Diff line number Diff line change 38
38
<entity name =" sampleUseProxy" type =" use_proxy" >
39
39
<data key =" value" >0</data >
40
40
</entity >
41
+
42
+ <!-- default configuration used to restore Magento config -->
43
+ <entity name =" defaultPayPalConfig" type =" paypal_config_state" >
44
+ <required-entity type =" business_account" >defaultBusinessAccount</required-entity >
45
+ <required-entity type =" api_username" >defaultApiUsername</required-entity >
46
+ <required-entity type =" api_password" >defaultApiPassword</required-entity >
47
+ <required-entity type =" api_signature" >defaultApiSignature</required-entity >
48
+ </entity >
49
+ <entity name =" defaultBusinessAccount" type =" business_account" >
50
+ <data key =" value" />
51
+ </entity >
52
+ <entity name =" defaultApiUsername" type =" api_username" >
53
+ <data key =" value" />
54
+ </entity >
55
+ <entity name =" defaultApiPassword" type =" api_password" >
56
+ <data key =" value" />
57
+ </entity >
58
+ <entity name =" defaultApiSignature" type =" api_signature" >
59
+ <data key =" value" />
60
+ </entity >
41
61
</config >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" ../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd" >
11
+ <cest name =" SetPaymentConfigurationCest" >
12
+ <test name =" SetPaypalConfigurationTest" >
13
+ <createData entity =" samplePaypalConfig" mergeKey =" createSamplePaypalConfig" />
14
+ <createData entity =" defaultPaypalConfig" mergeKey =" restoreDefaultPaypalConfig" />
15
+ </test >
16
+ <test name =" SetBraintreeConfigurationTest" >
17
+ <createData entity =" sampleBraintreeConfig" mergeKey =" createSampleBraintreeConfig" />
18
+ <createData entity =" defaultBraintreeConfig" mergeKey =" restoreDefaultBraintreeConfig" />
19
+ </test >
20
+ </cest >
21
+ </config >
You can’t perform that action at this time.
0 commit comments