Skip to content

Commit

Permalink
🔃 [EngCom] Public Pull Requests - 2.3-develop
Browse files Browse the repository at this point in the history
Accepted Public Pull Requests:
 - #21121: Applied PHP-CS-Fixer: concat_space, no_multiline_whitespace_around_double_arrow, ordered_imports (by @yogeshsuhagiya)
 - #21210: Correct spelling (by @ravi-chandra3197)
 - #21178: Fix issue 21177 - Cart page cross-sell product add-to-cart button issue resolved (by @speedy008)
 - #19505: ISSUE-5021 fixed guest checkout with custom shipping carrier with unde� (by @vovsky)
 - #21046: Remove unwanted condition check (by @dominicfernando)


Fixed GitHub Issues:
 - #21177: Cart Page cross sell product Add to cart button overlapping (reported by @speedy008) has been fixed in #21178 by @speedy008 in 2.3-develop branch
   Related commits:
     1. e434bb1
     2. 5328404
     3. f8e7c90

 - #5021: "Please specify a shipping method" Exception (reported by @vphat28) has been fixed in #19505 by @vovsky in 2.3-develop branch
   Related commits:
     1. 2360efd
     2. 9ab59dc
     3. 1238e4d
  • Loading branch information
magento-engcom-team authored Feb 19, 2019
2 parents d653583 + de0f924 commit 9cdc1b7
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __get($name)
}

/**
* Checks for the existance of a property stored in the private $_attributes property
* Checks for the existence of a property stored in the private $_attributes property
*
* @ignore
* @param string $name
Expand Down
6 changes: 5 additions & 1 deletion app/code/Magento/Captcha/Observer/CheckUserLoginObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Captcha\Observer;

use Magento\Customer\Model\AuthenticationInterface;
Expand All @@ -11,7 +12,10 @@
use Magento\Customer\Api\CustomerRepositoryInterface;

/**
* Check captcha on user login page observer.
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
*/
class CheckUserLoginObserver implements ObserverInterface
{
Expand Down Expand Up @@ -140,7 +144,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
$customer = $this->getCustomerRepository()->get($login);
$this->getAuthentication()->processAuthenticationFailure($customer->getId());
} catch (NoSuchEntityException $e) {
//do nothing as customer existance is validated later in authenticate method
//do nothing as customer existence is validated later in authenticate method
}
$this->messageManager->addError(__('Incorrect CAPTCHA'));
$this->_actionFlag->set('', \Magento\Framework\App\Action\Action::FLAG_NO_DISPATCH, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
use Magento\Quote\Model\Quote;

/**
* Guest payment information management model.
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class GuestPaymentInformationManagement implements \Magento\Checkout\Api\GuestPaymentInformationManagementInterface
Expand Down Expand Up @@ -66,7 +68,7 @@ class GuestPaymentInformationManagement implements \Magento\Checkout\Api\GuestPa
* @param \Magento\Checkout\Api\PaymentInformationManagementInterface $paymentInformationManagement
* @param \Magento\Quote\Model\QuoteIdMaskFactory $quoteIdMaskFactory
* @param CartRepositoryInterface $cartRepository
* @param ResourceConnection|null
* @param ResourceConnection $connectionPool
* @codeCoverageIgnore
*/
public function __construct(
Expand All @@ -88,7 +90,7 @@ public function __construct(
}

/**
* {@inheritDoc}
* @inheritdoc
*/
public function savePaymentInformationAndPlaceOrder(
$cartId,
Expand Down Expand Up @@ -129,7 +131,7 @@ public function savePaymentInformationAndPlaceOrder(
}

/**
* {@inheritDoc}
* @inheritdoc
*/
public function savePaymentInformation(
$cartId,
Expand All @@ -156,7 +158,7 @@ public function savePaymentInformation(
}

/**
* {@inheritDoc}
* @inheritdoc
*/
public function getPaymentInformation($cartId)
{
Expand Down Expand Up @@ -190,9 +192,8 @@ private function limitShippingCarrier(Quote $quote) : void
{
$shippingAddress = $quote->getShippingAddress();
if ($shippingAddress && $shippingAddress->getShippingMethod()) {
$shippingDataArray = explode('_', $shippingAddress->getShippingMethod());
$shippingCarrier = array_shift($shippingDataArray);
$shippingAddress->setLimitCarrier($shippingCarrier);
$shippingRate = $shippingAddress->getShippingRateByCode($shippingAddress->getShippingMethod());
$shippingAddress->setLimitCarrier($shippingRate->getCarrier());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public function testSavePaymentInformationAndPlaceOrderWithLocalizedException()
*/
private function getMockForAssignBillingAddress(
int $cartId,
\PHPUnit_Framework_MockObject_MockObject $billingAddressMock
\PHPUnit_Framework_MockObject_MockObject $billingAddressMock
) : void {
$quoteIdMask = $this->createPartialMock(QuoteIdMask::class, ['getQuoteId', 'load']);
$this->quoteIdMaskFactoryMock->method('create')
Expand All @@ -287,9 +287,11 @@ private function getMockForAssignBillingAddress(
$billingAddressId = 1;
$quote = $this->createMock(Quote::class);
$quoteBillingAddress = $this->createMock(Address::class);
$shippingRate = $this->createPartialMock(\Magento\Quote\Model\Quote\Address\Rate::class, []);
$shippingRate->setCarrier('flatrate');
$quoteShippingAddress = $this->createPartialMock(
Address::class,
['setLimitCarrier', 'getShippingMethod']
['setLimitCarrier', 'getShippingMethod', 'getShippingRateByCode']
);
$this->cartRepositoryMock->method('getActive')
->with($cartId)
Expand All @@ -309,6 +311,9 @@ private function getMockForAssignBillingAddress(
$quote->expects($this->once())
->method('setBillingAddress')
->with($billingAddressMock);
$quoteShippingAddress->expects($this->any())
->method('getShippingRateByCode')
->willReturn($shippingRate);
$quote->expects($this->once())
->method('setDataChanges')
->willReturnSelf();
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Cms/Helper/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function getPageUrl($pageId = null)
{
/** @var \Magento\Cms\Model\Page $page */
$page = $this->_pageFactory->create();
if ($pageId !== null && $pageId !== $page->getId()) {
if ($pageId !== null) {
$page->setStoreId($this->_storeManager->getStore()->getId());
$page->load($pageId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,17 +414,17 @@ protected function getButtonSet()
'component' => 'Magento_Ui/js/form/components/button',
'actions' => [
[
'targetName' =>
$this->uiComponentsConfig['form'] . '.' . $this->uiComponentsConfig['form']
'targetName' => $this->uiComponentsConfig['form'] .
'.' . $this->uiComponentsConfig['form']
. '.'
. static::GROUP_GROUPED
. '.'
. $this->uiComponentsConfig['modal'],
'actionName' => 'openModal',
],
[
'targetName' =>
$this->uiComponentsConfig['form'] . '.' . $this->uiComponentsConfig['form']
'targetName' => $this->uiComponentsConfig['form'] .
'.' . $this->uiComponentsConfig['form']
. '.'
. static::GROUP_GROUPED
. '.'
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Webapi/Model/Config/ClassReflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ protected function extractMethodDescription(\Zend\Code\Reflection\MethodReflecti
$docBlock = $methodReflection->getDocBlock();
if (!$docBlock) {
throw new \LogicException(
'The docBlock of the method '.
$method->getDeclaringClass()->getName() . '::' . $method->getName() . ' is empty.'
'The docBlock of the method ' .
$method->getDeclaringClass()->getName() . '::' . $method->getName() . ' is empty.'
);
}
return $this->_typeProcessor->getDescription($docBlock);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,18 @@
// Desktop
// _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__s) {
.cart-container {
.block.crosssell {
.products-grid {
.product-item-actions {
margin: 0 0 @indent__s;
}
}
}
}
}

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
.checkout-cart-index {
.page-main {
Expand Down

0 comments on commit 9cdc1b7

Please sign in to comment.