Skip to content

Commit

Permalink
merge magento/2.3-develop into magento-honey-badgers/MAGETWO-91437-Ca…
Browse files Browse the repository at this point in the history
…tegory-Product-Indexer
  • Loading branch information
Magento CICD authored Jun 7, 2018
2 parents f64e7fa + 4688217 commit 90e95ff
Show file tree
Hide file tree
Showing 19 changed files with 29 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Checkbox extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Op
/**
* @var string
*/
protected $_template = 'product/composite/fieldset/options/type/checkbox.phtml';
protected $_template = 'Magento_Bundle::product/composite/fieldset/options/type/checkbox.phtml';

/**
* @param string $elementId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Multi extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Optio
/**
* @var string
*/
protected $_template = 'product/composite/fieldset/options/type/multi.phtml';
protected $_template = 'Magento_Bundle::product/composite/fieldset/options/type/multi.phtml';

/**
* @param string $elementId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Radio extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Optio
/**
* @var string
*/
protected $_template = 'product/composite/fieldset/options/type/radio.phtml';
protected $_template = 'Magento_Bundle::product/composite/fieldset/options/type/radio.phtml';

/**
* @param string $elementId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Select extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Opti
/**
* @var string
*/
protected $_template = 'product/composite/fieldset/options/type/select.phtml';
protected $_template = 'Magento_Bundle::product/composite/fieldset/options/type/select.phtml';

/**
* @param string $elementId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Bundle extends \Magento\Backend\Block\Widget implements \Magento\Backend\B
/**
* @var string
*/
protected $_template = 'product/edit/bundle.phtml';
protected $_template = 'Magento_Bundle::product/edit/bundle.phtml';

/**
* Core registry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Option extends \Magento\Backend\Block\Widget
/**
* @var string
*/
protected $_template = 'product/edit/bundle/option.phtml';
protected $_template = 'Magento_Bundle::product/edit/bundle/option.phtml';

/**
* Core registry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Search extends \Magento\Backend\Block\Widget
/**
* @var string
*/
protected $_template = 'product/edit/bundle/option/search.phtml';
protected $_template = 'Magento_Bundle::product/edit/bundle/option/search.phtml';

/**
* @return void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Selection extends \Magento\Backend\Block\Widget
/**
* @var string
*/
protected $_template = 'product/edit/bundle/option/selection.phtml';
protected $_template = 'Magento_Bundle::product/edit/bundle/option/selection.phtml';

/**
* Catalog data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ class Checkbox extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Op
/**
* @var string
*/
protected $_template = 'catalog/product/view/type/bundle/option/checkbox.phtml';
protected $_template = 'Magento_Bundle::catalog/product/view/type/bundle/option/checkbox.phtml';
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Multi extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Optio
/**
* @var string
*/
protected $_template = 'catalog/product/view/type/bundle/option/multi.phtml';
protected $_template = 'Magento_Bundle::catalog/product/view/type/bundle/option/multi.phtml';

/**
* @inheritdoc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ class Radio extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Optio
/**
* @var string
*/
protected $_template = 'catalog/product/view/type/bundle/option/radio.phtml';
protected $_template = 'Magento_Bundle::catalog/product/view/type/bundle/option/radio.phtml';
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ class Select extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Opti
/**
* @var string
*/
protected $_template = 'catalog/product/view/type/bundle/option/select.phtml';
protected $_template = 'Magento_Bundle::catalog/product/view/type/bundle/option/select.phtml';
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function afterGetCacheKey(PriceBox $subject, $result)
'-',
[
$result,
$this->priceCurrency->getCurrencySymbol(),
$this->priceCurrency->getCurrency()->getCode(),
$this->dateTime->scopeDate($this->scopeResolver->getScope()->getId())->format('Ymd'),
$this->scopeResolver->getScope()->getId(),
$this->customerSession->getCustomerGroupId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ class PriceBoxTagsTest extends \PHPUnit\Framework\TestCase
*/
private $priceCurrencyInterface;

/**
* @var \Magento\Directory\Model\Currency | \PHPUnit_Framework_MockObject_MockObject
*/
private $currency;

/**
* @var \Magento\Framework\Stdlib\DateTime\TimezoneInterface | \PHPUnit_Framework_MockObject_MockObject
*/
Expand Down Expand Up @@ -46,6 +51,9 @@ protected function setUp()
$this->priceCurrencyInterface = $this->getMockBuilder(
\Magento\Framework\Pricing\PriceCurrencyInterface::class
)->getMock();
$this->currency = $this->getMockBuilder(\Magento\Directory\Model\Currency::class)
->disableOriginalConstructor()
->getMock();
$this->timezoneInterface = $this->getMockBuilder(
\Magento\Framework\Stdlib\DateTime\TimezoneInterface::class
)->getMock();
Expand Down Expand Up @@ -82,7 +90,7 @@ protected function setUp()
public function testAfterGetCacheKey()
{
$date = date('Ymd');
$currencySymbol = '$';
$currencyCode = 'USD';
$result = 'result_string';
$billingAddress = ['billing_address'];
$shippingAddress = ['shipping_address'];
Expand All @@ -95,7 +103,7 @@ public function testAfterGetCacheKey()
'-',
[
$result,
$currencySymbol,
$currencyCode,
$date,
$scopeId,
$customerGroupId,
Expand All @@ -104,7 +112,8 @@ public function testAfterGetCacheKey()
);
$priceBox = $this->getMockBuilder(\Magento\Framework\Pricing\Render\PriceBox::class)
->disableOriginalConstructor()->getMock();
$this->priceCurrencyInterface->expects($this->once())->method('getCurrencySymbol')->willReturn($currencySymbol);
$this->priceCurrencyInterface->expects($this->once())->method('getCurrency')->willReturn($this->currency);
$this->currency->expects($this->once())->method('getCode')->willReturn($currencyCode);
$scope = $this->getMockBuilder(\Magento\Framework\App\ScopeInterface::class)->getMock();
$this->scopeResolverInterface->expects($this->any())->method('getScope')->willReturn($scope);
$scope->expects($this->any())->method('getId')->willReturn($scopeId);
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Checkout/etc/webapi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<resource ref="anonymous" />
</resources>
</route>
<!-- Managing My shipping information -->
<!-- Managing My payment information -->
<route url="/V1/carts/mine/set-payment-information" method="POST">
<service class="Magento\Checkout\Api\PaymentInformationManagementInterface" method="savePaymentInformation"/>
<resources>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ define([
}

// Process orders data
if (config.ordersTrackingData.length) {
if (config.ordersTrackingData.hasOwnProperty('currency')) {
ga('require', 'ec', 'ec.js');

ga('set', 'currencyCode', config.ordersTrackingData.currency);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
overflow: hidden;
padding: 5px 6px 3px;
margin-left: 12px;
color: #7a7976;;
color: #7a7976;
}

[class^=" catalog-product-"] .page-actions .action-back:hover,
Expand Down
1 change: 0 additions & 1 deletion lib/web/css/docs/source/docs.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
@import '_icons.less';
@import '_loaders.less';
@import '_messages.less';
//@import 'navigation.less';
@import '_layout.less';
@import '_pages.less';
@import '_popups.less';
Expand Down
2 changes: 1 addition & 1 deletion lib/web/extjs/resources/css/ytheme-magento.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
background:url(../images/magento/loading_bg.gif) no-repeat #eae2ca;
padding:85px 15px 15px 15px;
font-size:14px;
font-weight:bold;;
font-weight:bold;
color:#611B06;
width:206px;
text-align:center;
Expand Down

0 comments on commit 90e95ff

Please sign in to comment.