Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit 205a408

Browse files
authored
Merge pull request #1532 from magento-engcom/develop-prs
[EngCom] Public Pull Requests
2 parents db05632 + 0e26f4b commit 205a408

File tree

13 files changed

+27
-7
lines changed

13 files changed

+27
-7
lines changed

app/code/Magento/Backend/Controller/Adminhtml/Noroute/Index.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,14 @@ public function execute()
3939
$resultPage->addHandle('adminhtml_noroute');
4040
return $resultPage;
4141
}
42+
43+
/**
44+
* Error page should be public accessible. Do not check keys to avoid redirect loop
45+
*
46+
* @return bool
47+
*/
48+
protected function _validateSecretKey()
49+
{
50+
return true;
51+
}
4252
}

app/code/Magento/Braintree/Test/Unit/Gateway/Http/Client/TransactionSaleTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ public function testPlaceRequestSuccess()
9090
$this->adapter->expects($this->once())
9191
->method('sale')
9292
->with($this->getTransferData())
93-
->willReturn($response)
94-
;
93+
->willReturn($response);
9594

9695
$this->loggerMock->expects($this->once())
9796
->method('debug')

app/code/Magento/Braintree/view/adminhtml/web/js/braintree.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ define([
211211
}
212212

213213
if (event.type !== 'fieldStateChange') {
214-
215214
return false;
216215
}
217216

app/code/Magento/Braintree/view/base/web/js/validator.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ define([
8383
*/
8484
getCountrySpecificCardTypes: function (countryId) {
8585
if (typeof this.config.countrySpecificCardTypes[countryId] !== 'undefined') {
86-
8786
return this.config.countrySpecificCardTypes[countryId];
8887
}
8988

app/code/Magento/Braintree/view/frontend/web/js/view/payment/method-renderer/cc-form.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ define(
271271
billingCountryId = billingAddress.countryId;
272272

273273
if (billingCountryId && validator.getCountrySpecificCardTypes(billingCountryId)) {
274-
275274
return validator.collectTypes(
276275
availableTypes, validator.getCountrySpecificCardTypes(billingCountryId)
277276
);

app/code/Magento/Braintree/view/frontend/web/js/view/payment/method-renderer/hosted-fields.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ define([
104104
}
105105

106106
if (event.type !== 'fieldStateChange') {
107-
108107
return false;
109108
}
110109

app/code/Magento/Braintree/view/frontend/web/js/view/payment/method-renderer/paypal.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ define([
299299
var address = quote.shippingAddress();
300300

301301
if (_.isNull(address.postcode) || _.isUndefined(address.postcode)) {
302-
303302
return {};
304303
}
305304

dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/CreateSimpleProductEntityTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
<constraint name="Magento\Catalog\Test\Constraint\AssertProductInCart" />
4747
</variation>
4848
<variation name="CreateSimpleProductEntityTestVariation3" summary="Create product with special price and custom options(fixed price)">
49+
<data name="tag" xsi:type="string">stable:no</data>
50+
<data name="issue" xsi:type="string">MAGETWO-80353: PHP 7.1 compatibility: Jenkins Failures related to PHP 7.1 upgrade</data>
4951
<data name="tag" xsi:type="string">test_type:extended_acceptance_test</data>
5052
<data name="product/data/url_key" xsi:type="string">simple-product-%isolation%</data>
5153
<data name="product/data/name" xsi:type="string">Simple Product %isolation%</data>

dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/UpdateSimpleProductEntityTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@
178178
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPriceOnDifferentStoreViews" />
179179
</variation>
180180
<variation name="UpdateSimpleProductEntityTestVariation14" summary="An error appears on open tier price with locale formatting" ticketId="MAGETWO-62076">
181+
<data name="tag" xsi:type="string">stable:no</data>
182+
<data name="issue" xsi:type="string">MAGETWO-80353: PHP 7.1 compatibility: Jenkins Failures related to PHP 7.1 upgrade</data>
181183
<data name="initialProduct/dataset" xsi:type="string">simple_with_hight_tier_price</data>
182184
<constraint name="Magento\Catalog\Test\Constraint\AssertProductFormattingTierPrice" />
183185
</variation>

dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/MassAssignCustomerGroupTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/mtf/etc/variations.xsd">
99
<testCase name="Magento\Customer\Test\TestCase\MassAssignCustomerGroupTest" summary="Mass Assign Customer's Group to Customers" ticketId="MAGETWO-27892">
1010
<variation name="MassAssignCustomerGroupTestVariation1" summary="Customer is created and mass action for changing customer group to created group is applied">
11+
<data name="tag" xsi:type="string">stable:no</data>
12+
<data name="issue" xsi:type="string">MAGETWO-80353: PHP 7.1 compatibility: Jenkins Failures related to PHP 7.1 upgrade</data>
1113
<data name="customers" xsi:type="array">
1214
<item name="0" xsi:type="string">default</item>
1315
</data>

dev/tests/functional/tests/app/Magento/User/Test/TestCase/RevokeAllAccessTokensForAdminWithoutTokensTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/mtf/etc/variations.xsd">
99
<testCase name="Magento\User\Test\TestCase\RevokeAllAccessTokensForAdminWithoutTokensTest" summary="Revoke All Access Tokens for Admin without Tokens" ticketId="MAGETWO-29675">
1010
<variation name="RevokeAllAccessTokensForAdminWithoutTokensTestVariation1">
11+
<data name="tag" xsi:type="string">stable:no</data>
12+
<data name="issue" xsi:type="string">MAGETWO-80353: PHP 7.1 compatibility: Jenkins Failures related to PHP 7.1 upgrade</data>
1113
<data name="user/dataset" xsi:type="string">custom_admin</data>
1214
<constraint name="Magento\User\Test\Constraint\AssertAccessTokensErrorRevokeMessage" />
1315
</variation>

dev/tests/functional/tests/app/Magento/Variable/Test/TestCase/UpdateCustomVariableEntityTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
<constraint name="Magento\Variable\Test\Constraint\AssertCustomVariableInPage" />
2020
</variation>
2121
<variation name="UpdateCustomVariableEntityTestVariation2">
22+
<data name="tag" xsi:type="string">stable:no</data>
23+
<data name="issue" xsi:type="string">MAGETWO-80353: PHP 7.1 compatibility: Jenkins Failures related to PHP 7.1 upgrade</data>
2224
<data name="customVariable/data/code" xsi:type="string">variableCode%isolation%</data>
2325
<data name="customVariable/data/name" xsi:type="string">variableName%isolation%</data>
2426
<data name="customVariable/data/use_default_value" xsi:type="string">No</data>
@@ -42,6 +44,8 @@
4244
<constraint name="Magento\Variable\Test\Constraint\AssertCustomVariableInPage" />
4345
</variation>
4446
<variation name="UpdateCustomVariableEntityTestVariation4">
47+
<data name="tag" xsi:type="string">stable:no</data>
48+
<data name="issue" xsi:type="string">MAGETWO-80353: PHP 7.1 compatibility: Jenkins Failures related to PHP 7.1 upgrade</data>
4549
<data name="customVariable/data/code" xsi:type="string">variableCode%isolation%</data>
4650
<data name="customVariable/data/name" xsi:type="string">variableName%isolation%</data>
4751
<data name="customVariable/data/use_default_value" xsi:type="string">No</data>

dev/tests/unit/framework/bootstrap.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
error_reporting(E_ALL);
2121
ini_set('display_errors', 1);
2222

23+
/* For data consistency between displaying (printing) and serialization a float number */
24+
ini_set('precision', 14);
25+
ini_set('serialize_precision', 14);
26+
2327
/**
2428
* Set custom error handler
2529
*/

0 commit comments

Comments
 (0)