Skip to content

Commit

Permalink
Merge pull request #1532 from magento-engcom/develop-prs
Browse files Browse the repository at this point in the history
[EngCom] Public Pull Requests
  • Loading branch information
vrann authored Sep 29, 2017
2 parents db05632 + 0e26f4b commit 205a408
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 7 deletions.
10 changes: 10 additions & 0 deletions app/code/Magento/Backend/Controller/Adminhtml/Noroute/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,14 @@ public function execute()
$resultPage->addHandle('adminhtml_noroute');
return $resultPage;
}

/**
* Error page should be public accessible. Do not check keys to avoid redirect loop
*
* @return bool
*/
protected function _validateSecretKey()
{
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ public function testPlaceRequestSuccess()
$this->adapter->expects($this->once())
->method('sale')
->with($this->getTransferData())
->willReturn($response)
;
->willReturn($response);

$this->loggerMock->expects($this->once())
->method('debug')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ define([
}

if (event.type !== 'fieldStateChange') {

return false;
}

Expand Down
1 change: 0 additions & 1 deletion app/code/Magento/Braintree/view/base/web/js/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ define([
*/
getCountrySpecificCardTypes: function (countryId) {
if (typeof this.config.countrySpecificCardTypes[countryId] !== 'undefined') {

return this.config.countrySpecificCardTypes[countryId];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ define(
billingCountryId = billingAddress.countryId;

if (billingCountryId && validator.getCountrySpecificCardTypes(billingCountryId)) {

return validator.collectTypes(
availableTypes, validator.getCountrySpecificCardTypes(billingCountryId)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ define([
}

if (event.type !== 'fieldStateChange') {

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ define([
var address = quote.shippingAddress();

if (_.isNull(address.postcode) || _.isUndefined(address.postcode)) {

return {};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
<constraint name="Magento\Catalog\Test\Constraint\AssertProductInCart" />
</variation>
<variation name="CreateSimpleProductEntityTestVariation3" summary="Create product with special price and custom options(fixed price)">
<data name="tag" xsi:type="string">stable:no</data>
<data name="issue" xsi:type="string">MAGETWO-80353: PHP 7.1 compatibility: Jenkins Failures related to PHP 7.1 upgrade</data>
<data name="tag" xsi:type="string">test_type:extended_acceptance_test</data>
<data name="product/data/url_key" xsi:type="string">simple-product-%isolation%</data>
<data name="product/data/name" xsi:type="string">Simple Product %isolation%</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPriceOnDifferentStoreViews" />
</variation>
<variation name="UpdateSimpleProductEntityTestVariation14" summary="An error appears on open tier price with locale formatting" ticketId="MAGETWO-62076">
<data name="tag" xsi:type="string">stable:no</data>
<data name="issue" xsi:type="string">MAGETWO-80353: PHP 7.1 compatibility: Jenkins Failures related to PHP 7.1 upgrade</data>
<data name="initialProduct/dataset" xsi:type="string">simple_with_hight_tier_price</data>
<constraint name="Magento\Catalog\Test\Constraint\AssertProductFormattingTierPrice" />
</variation>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/mtf/etc/variations.xsd">
<testCase name="Magento\Customer\Test\TestCase\MassAssignCustomerGroupTest" summary="Mass Assign Customer's Group to Customers" ticketId="MAGETWO-27892">
<variation name="MassAssignCustomerGroupTestVariation1" summary="Customer is created and mass action for changing customer group to created group is applied">
<data name="tag" xsi:type="string">stable:no</data>
<data name="issue" xsi:type="string">MAGETWO-80353: PHP 7.1 compatibility: Jenkins Failures related to PHP 7.1 upgrade</data>
<data name="customers" xsi:type="array">
<item name="0" xsi:type="string">default</item>
</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/mtf/etc/variations.xsd">
<testCase name="Magento\User\Test\TestCase\RevokeAllAccessTokensForAdminWithoutTokensTest" summary="Revoke All Access Tokens for Admin without Tokens" ticketId="MAGETWO-29675">
<variation name="RevokeAllAccessTokensForAdminWithoutTokensTestVariation1">
<data name="tag" xsi:type="string">stable:no</data>
<data name="issue" xsi:type="string">MAGETWO-80353: PHP 7.1 compatibility: Jenkins Failures related to PHP 7.1 upgrade</data>
<data name="user/dataset" xsi:type="string">custom_admin</data>
<constraint name="Magento\User\Test\Constraint\AssertAccessTokensErrorRevokeMessage" />
</variation>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<constraint name="Magento\Variable\Test\Constraint\AssertCustomVariableInPage" />
</variation>
<variation name="UpdateCustomVariableEntityTestVariation2">
<data name="tag" xsi:type="string">stable:no</data>
<data name="issue" xsi:type="string">MAGETWO-80353: PHP 7.1 compatibility: Jenkins Failures related to PHP 7.1 upgrade</data>
<data name="customVariable/data/code" xsi:type="string">variableCode%isolation%</data>
<data name="customVariable/data/name" xsi:type="string">variableName%isolation%</data>
<data name="customVariable/data/use_default_value" xsi:type="string">No</data>
Expand All @@ -42,6 +44,8 @@
<constraint name="Magento\Variable\Test\Constraint\AssertCustomVariableInPage" />
</variation>
<variation name="UpdateCustomVariableEntityTestVariation4">
<data name="tag" xsi:type="string">stable:no</data>
<data name="issue" xsi:type="string">MAGETWO-80353: PHP 7.1 compatibility: Jenkins Failures related to PHP 7.1 upgrade</data>
<data name="customVariable/data/code" xsi:type="string">variableCode%isolation%</data>
<data name="customVariable/data/name" xsi:type="string">variableName%isolation%</data>
<data name="customVariable/data/use_default_value" xsi:type="string">No</data>
Expand Down
4 changes: 4 additions & 0 deletions dev/tests/unit/framework/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
error_reporting(E_ALL);
ini_set('display_errors', 1);

/* For data consistency between displaying (printing) and serialization a float number */
ini_set('precision', 14);
ini_set('serialize_precision', 14);

/**
* Set custom error handler
*/
Expand Down

0 comments on commit 205a408

Please sign in to comment.