File tree Expand file tree Collapse file tree 5 files changed +24
-13
lines changed
dev/tests/api-functional/testsuite/Magento Expand file tree Collapse file tree 5 files changed +24
-13
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,10 @@ public function testGetListReturnsEmptyListIfCheckoutAgreementsAreDisabledOnFron
65
65
*/
66
66
public function testGetListReturnsTheListOfActiveCheckoutAgreements ()
67
67
{
68
-
69
- $ this ->markTestSkipped ('This test relies on system configuration state.. ' );
68
+ $ this ->markTestSkipped ('This test relies on system configuration state. ' );
69
+ // checkout/options/enable_agreements must be set to 1 in system configuration
70
+ // @todo remove above statement when \Magento\TestFramework\TestCase\WebapiAbstract::_updateAppConfig is fixed
71
+
70
72
$ agreementModel = $ this ->getAgreementByName ('Checkout Agreement (active) ' );
71
73
72
74
$ agreements = $ this ->_webApiCall ($ this ->listServiceInfo , []);
Original file line number Diff line number Diff line change @@ -102,8 +102,10 @@ public function testGetForMyCart()
102
102
*/
103
103
public function testSave ()
104
104
{
105
+ $ this ->markTestSkipped ('This test relies on system configuration state. ' );
106
+ // sales/gift_options/allow_order must be set to 1 in system configuration
107
+ // @todo remove above statement when \Magento\TestFramework\TestCase\WebapiAbstract::_updateAppConfig is fixed
105
108
106
- $ this ->markTestSkipped ('This test relies on system configuration state.. ' );
107
109
/** @var \Magento\Quote\Model\Quote $quote */
108
110
$ quote = $ this ->objectManager ->create (\Magento \Quote \Model \Quote::class);
109
111
$ quote ->load ('test_order_item_with_message ' , 'reserved_order_id ' );
@@ -154,8 +156,9 @@ public function testSaveForMyCart()
154
156
);
155
157
$ token =
$ customerTokenService->
createCustomerAccessToken (
'[email protected] ' ,
'password ' );
156
158
157
-
158
- $ this ->markTestSkipped ('This test relies on system configuration state.. ' );
159
+ $ this ->markTestSkipped ('This test relies on system configuration state. ' );
160
+ // sales/gift_options/allow_order must be set to 1 in system configuration
161
+ // @todo remove above statement when \Magento\TestFramework\TestCase\WebapiAbstract::_updateAppConfig is fixed
159
162
160
163
$ serviceInfo = [
161
164
'rest ' => [
Original file line number Diff line number Diff line change @@ -73,8 +73,10 @@ public function testGet()
73
73
*/
74
74
public function testSave ()
75
75
{
76
-
77
- $ this ->markTestSkipped ('This test relies on system configuration state.. ' );
76
+ $ this ->markTestSkipped ('This test relies on system configuration state. ' );
77
+ // sales/gift_options/allow_order must be set to 1 in system configuration
78
+ // @todo remove above statement when \Magento\TestFramework\TestCase\WebapiAbstract::_updateAppConfig is fixed
79
+
78
80
/** @var \Magento\Quote\Model\Quote $quote */
79
81
$ quote = $ this ->objectManager ->create (\Magento \Quote \Model \Quote::class);
80
82
$ quote ->load ('test_order_item_with_message ' , 'reserved_order_id ' );
Original file line number Diff line number Diff line change @@ -78,9 +78,10 @@ public function testGet()
78
78
*/
79
79
public function testSave ()
80
80
{
81
-
82
81
$ this ->markTestSkipped ('This test relies on system configuration state. ' );
83
-
82
+ // sales/gift_options/allow_items must be set to 1 in system configuration
83
+ // @todo remove above statement when \Magento\TestFramework\TestCase\WebapiAbstract::_updateAppConfig is fixed
84
+
84
85
/** @var \Magento\Quote\Model\Quote $quote */
85
86
$ quote = $ this ->objectManager ->create (\Magento \Quote \Model \Quote::class);
86
87
$ quote ->load ('test_order_item_with_message ' , 'reserved_order_id ' );
Original file line number Diff line number Diff line change @@ -112,8 +112,10 @@ public function testGetForMyCart()
112
112
*/
113
113
public function testSave ()
114
114
{
115
-
116
- $ this ->markTestSkipped ('This test relies on system configuration state.. ' );
115
+ $ this ->markTestSkipped ('This test relies on system configuration state. ' );
116
+ // sales/gift_options/allow_items must be set to 1 in system configuration
117
+ // @todo remove above statement when \Magento\TestFramework\TestCase\WebapiAbstract::_updateAppConfig is fixed
118
+
117
119
/** @var \Magento\Quote\Model\Quote $quote */
118
120
$ quote = $ this ->objectManager ->create (\Magento \Quote \Model \Quote::class);
119
121
$ quote ->load ('test_order_item_with_message ' , 'reserved_order_id ' );
@@ -165,9 +167,10 @@ public function testSaveForMyCart()
165
167
);
166
168
$ token =
$ customerTokenService->
createCustomerAccessToken (
'[email protected] ' ,
'password ' );
167
169
168
- // sales/gift_options/allow_items must be set to 1 in system configuration
169
- // @todo remove next statement when \Magento\TestFramework\TestCase\WebapiAbstract::_updateAppConfig is fixed
170
170
$ this ->markTestSkipped ('This test relies on system configuration state. ' );
171
+ // sales/gift_options/allow_items must be set to 1 in system configuration
172
+ // @todo remove above statement when \Magento\TestFramework\TestCase\WebapiAbstract::_updateAppConfig is fixed
173
+
171
174
/** @var \Magento\Quote\Model\Quote $quote */
172
175
$ quote = $ this ->objectManager ->create (\Magento \Quote \Model \Quote::class);
173
176
$ quote ->load ('test_order_item_with_message ' , 'reserved_order_id ' );
You can’t perform that action at this time.
0 commit comments