Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Forwardport] #7903 correct the position of the datepicker when you scroll #24

Merged
merged 57 commits into from
Jul 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
db3f2c7
Mutations Prototype (POC) #74
Jul 2, 2018
9074980
prevent layout cache corruption
scottsb Nov 15, 2017
f6b2fd6
ENGCOM-2164: [Forwardport] Prevent layout cache corruption in edge ca…
magento-engcom-team Jul 2, 2018
eb2a5a3
Mutations Prototype (POC) #74
Jul 2, 2018
1acd06f
issue/14056 - Coupon API not working for guest user
May 18, 2018
2651be3
issue/14056 - Coupon API not working for guest user - adjusted unit t…
May 24, 2018
456a24c
ENGCOM-2201: issue/14056 - Coupon API not working for guest user #16562
magento-engcom-team Jul 6, 2018
e2c4aca
Fix of invalid price for integer currencies when amount less then gro…
Jul 6, 2018
c6474fb
ENGCOM-2212: [Forwardport] Fix of invalid price for integer currencie…
magento-engcom-team Jul 6, 2018
516566a
Make it possible to disable cross-sell on cart page
arnoudhgz Jul 5, 2018
b7b03f9
Update Israeli ZIP code mask, 7 digits instead of 5 ,according to the…
itaymesh Jun 19, 2018
e4b7eef
small refactoring to better code readability
likemusic Jun 11, 2018
08051c0
improve params string creation according to @orlangur suggestion
likemusic Jun 12, 2018
5bb6777
ENGCOM-2216: Update Israeli ZIP code mask, 7 digits instead of 5 ,acc…
magento-engcom-team Jul 9, 2018
e701de3
ENGCOM-2226: [Forwardport] Small refactoring to better code readabili…
magento-engcom-team Jul 9, 2018
2816764
Issue #11354 Merged CSS file name generation
sashas777 May 10, 2018
2d31c1d
Regenerated Doc for function
sashas777 May 10, 2018
e7677e8
Removed whitespace
sashas777 May 10, 2018
ca3c79c
Travic CI Test case errors
sashas777 May 11, 2018
311f8ca
Travic CI - This pull request quality could be better.
sashas777 May 11, 2018
1782c54
Minor fixes
May 11, 2018
94e0e25
Fixed unit test
May 11, 2018
831e58c
Fixed Unit Tests
sashas777 May 11, 2018
742ad8c
Only one argument is allowed per line in a multi-line function call
sashas777 May 11, 2018
79c16f4
ENGCOM-2250: [Forwardport] Fixed Issue #11354 Merged CSS file name ge…
magento-engcom-team Jul 10, 2018
7544c3d
Corrected function comment
sanganinamrata Jul 5, 2018
b9841e6
ENGCOM-2258: [Forwardport] Corrected function comment #16687
magento-engcom-team Jul 10, 2018
a6a0d5b
Declare module namespace
mageprince Jul 10, 2018
e31a8c3
Declare module namespace
mageprince Jul 10, 2018
b798f31
Declare module namespace
mageprince Jul 10, 2018
f30b65e
Declare module namespace
mageprince Jul 10, 2018
6cb335d
Merge pull request https://github.com/magento/magento2/pull/16700 to …
magento-engcom-team Jul 11, 2018
a7b12cb
ENGCOM-2278: Mutations Prototype (POC) #74 #114
magento-engcom-team Jul 11, 2018
796ee2a
ENGCOM-2273: Declare module namespace before template path in Magento…
magento-engcom-team Jul 11, 2018
4c2601f
ENGCOM-2261: Declare module namespace before template path in all oth…
magento-engcom-team Jul 11, 2018
acc36c5
ENGCOM-2260: Declare module namespace before template path in Magento…
magento-engcom-team Jul 11, 2018
59431c0
ENGCOM-2278: Mutations Prototype (POC) #74 #114
Jul 11, 2018
68e3f4e
ENGCOM-2273: Declare module namespace before template path in Magento…
Jul 11, 2018
8b05fe9
ENGCOM-2261: Declare module namespace before template path in all oth…
Jul 11, 2018
4173731
ENGCOM-2260: Declare module namespace before template path in Magento…
Jul 11, 2018
9c466ca
ENGCOM-2258: [Forwardport] Corrected function comment #16687
Jul 11, 2018
2146fba
ENGCOM-2250: [Forwardport] Fixed Issue #11354 Merged CSS file name ge…
Jul 11, 2018
e0a3b0e
ENGCOM-2212: [Forwardport] Fix of invalid price for integer currencie…
Jul 11, 2018
a225a11
ENGCOM-2201: issue/14056 - Coupon API not working for guest user #16562
Jul 11, 2018
adcb99d
Merge branch '2.3-develop' into feature/make-related-products-in-chec…
Jul 12, 2018
44bfc8b
ENGCOM-2205: Make it possible to disable cross-sell on cart page #16569
magento-engcom-team Jul 12, 2018
5a764b2
ENGCOM-2226: [Forwardport] Small refactoring to better code readabili…
Jul 12, 2018
6827d2b
ENGCOM-2216: Update Israeli ZIP code mask, 7 digits instead of 5 ,acc…
Jul 12, 2018
d0eca97
ENGCOM-2205: Make it possible to disable cross-sell on cart page #16569
Jul 12, 2018
9e2e451
ENGCOM-2164: [Forwardport] Prevent layout cache corruption in edge ca…
Jul 12, 2018
b1ac916
ENGCOM-2216: Update Israeli ZIP code mask, 7 digits instead of 5 ,acc…
Jul 12, 2018
f8c52ef
MAGETWO-64854: Incorrect Refund Logic can allow for double-refunds
danielrenaud Jul 12, 2018
bfaac1f
magento/magento2#16663 [Forwardport] Fixed Issue #11354 Merged CSS fi…
Jul 12, 2018
5621eee
:arrows_clockwise: [EngCom] Public Pull Requests - 2.3-develop
Jul 12, 2018
b187d52
merge magento/2.3-develop into magento-borg/MAGETWO-64854
Jul 12, 2018
ce5eacd
Merge pull request #2828 from magento-borg/MAGETWO-64854
cpartica Jul 13, 2018
ec4d988
PR#7903 correct the position of the datepicker when you scroll
lionelalvarez Nov 5, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/code/Magento/AdvancedSearch/Block/SearchData.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ abstract class SearchData extends Template implements SearchDataInterface
/**
* @var string
*/
protected $_template = 'search_data.phtml';
protected $_template = 'Magento_AdvancedSearch::search_data.phtml';

/**
* @param Template\Context $context
Expand Down
20 changes: 12 additions & 8 deletions app/code/Magento/Backend/Block/Widget/Form/Element/Dependence.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,18 @@ protected function _toHtml()
if (!$this->_depends) {
return '';
}
return '<script>
require(["mage/adminhtml/form"], function(){
new FormElementDependenceController(' .
$this->_getDependsJson() .
($this->_configOptions ? ', ' .
$this->_jsonEncoder->encode(
$this->_configOptions
) : '') . '); });</script>';

$params = $this->_getDependsJson();

if ($this->_configOptions) {
$params .= ', ' . $this->_jsonEncoder->encode($this->_configOptions);
}

return "<script>
require(['mage/adminhtml/form'], function(){
new FormElementDependenceController({$params});
});
</script>";
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
<section name="AdminMessagesSection">
<element name="success" type="text" selector="#messages div.message-success"/>
<element name="nthSuccess" type="text" selector=".message.message-success.success:nth-of-type({{n}})>div" parameterized="true"/>
<element name="error" type="text" selector="#messages div.message-error"/>
</section>
</sections>
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,16 @@
<seeElement stepKey="LookingForNameOfProduct" selector="{{BundleStorefrontSection.bundleProductName}}"/>

<!--Testing disabled view-->
<actionGroup ref="FindProductToEdit" stepKey="FindProductEditPage"/>
<amOnPage url="{{AdminProductIndexPage.url}}" stepKey="GoToProductCatalog"/>
<waitForPageLoad stepKey="WaitForCatalogProductPageToLoad"/>
<actionGroup ref="filterProductGridBySku" stepKey="FindProductEditPage">
<argument name="product" value="BundleProduct"/>
</actionGroup>
<click selector="{{AdminDataGridTableSection.rowViewAction('1')}}" stepKey="ClickProductInGrid"/>
<click stepKey="ClickOnEnableDisableToggle" selector="{{AdminProductFormBundleSection.enableDisableToggle}}"/>
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveButtonAgain"/>
<seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="messageYouSavedTheProductIsShown2"/>
<waitForPageLoad stepKey="PauseForSave"/>
<see selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You saved the product." stepKey="messageYouSavedTheProductIsShownAgain"/>
<amOnPage url="{{BundleProduct.urlKey}}.html" stepKey="GoToProductPageAgain"/>
<waitForPageLoad stepKey="WaitForProductPageToLoadToShowElement"/>
<dontSeeElement stepKey="LookingForNameOfProductTwo" selector="{{BundleStorefrontSection.bundleProductName}}"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ class Attribute extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'catalog/product/attribute/set/main/tree/attribute.phtml';
protected $_template = 'Magento_Catalog::catalog/product/attribute/set/main/tree/attribute.phtml';
}
4 changes: 4 additions & 0 deletions app/code/Magento/Checkout/etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
<field id="number_items_to_display_pager" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Number of Items to Display Pager</label>
</field>
<field id="crosssell_enabled" translate="label" type="select" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Show Cross-sell Items in the Shopping Cart</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
</group>
<group id="cart_link" translate="label" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="0">
<label>My Cart Link</label>
Expand Down
1 change: 1 addition & 0 deletions app/code/Magento/Checkout/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<delete_quote_after>30</delete_quote_after>
<redirect_to_cart>0</redirect_to_cart>
<number_items_to_display_pager>20</number_items_to_display_pager>
<crosssell_enabled>1</crosssell_enabled>
</cart>
<cart_link>
<use_qty>1</use_qty>
Expand Down
1 change: 1 addition & 0 deletions app/code/Magento/Checkout/i18n/en_US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,4 @@ Payment,Payment
"Item in Cart","Item in Cart"
"Items in Cart","Items in Cart"
"Close","Close"
"Show Cross-sell Items in the Shopping Cart","Show Cross-sell Items in the Shopping Cart"
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
</block>
<container name="checkout.cart.widget" as="checkout_cart_widget" label="Shopping Cart Items After"/>
</container>
<block class="Magento\Checkout\Block\Cart\Crosssell" name="checkout.cart.crosssell" template="Magento_Catalog::product/list/items.phtml" after="-">
<block class="Magento\Checkout\Block\Cart\Crosssell" name="checkout.cart.crosssell" template="Magento_Catalog::product/list/items.phtml" after="-" ifconfig="checkout/cart/crosssell_enabled">
<arguments>
<argument name="type" xsi:type="string">crosssell</argument>
</arguments>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<system>
<section id="checkout">
<group id="cart">
<field id="configurable_product_image" translate="label" type="select" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<field id="configurable_product_image" translate="label" type="select" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Configurable Product Image</label>
<source_model>Magento\Catalog\Model\Config\Source\Product\Thumbnail</source_model>
</field>
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Directory/etc/zip_codes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
</zip>
<zip countryCode="IL">
<codes>
<code id="pattern_1" active="true" example="12345">^[0-9]{5}$</code>
<code id="pattern_1" active="true" example="6687865">^[0-9]{7}$</code>
</codes>
</zip>
<zip countryCode="IT">
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Eav/Block/Adminhtml/Attribute/Edit/Js.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Js extends \Magento\Backend\Block\Template
* @var string
*/

protected $_template = 'attribute/edit/js.phtml';
protected $_template = 'Magento_Eav::attribute/edit/js.phtml';

/**
* @var \Magento\Eav\Model\Adminhtml\System\Config\Source\Inputtype
Expand Down
6 changes: 5 additions & 1 deletion app/code/Magento/GraphQl/etc/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
type Query {
}

type Mutation {
placeholderMutation: String @doc(description: "Mutation type cannot be declared without fields. The placeholder will be removed when at least one mutation field is declared.")
}

input FilterTypeInput @doc(description: "FilterTypeInput specifies which action will be performed in a query ") {
eq: String @doc(description: "Equals")
finset: [String] @doc(description: "Find in set. The value can contain a set of comma-separated values")
Expand All @@ -30,4 +34,4 @@ type SearchResultPageInfo @doc(description: "SearchResultPageInfo provides navig
enum SortEnum @doc(description: "This enumeration indicates whether to return results in ascending or descending order") {
ASC
DESC
}
}
2 changes: 1 addition & 1 deletion app/code/Magento/GroupedProduct/etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<system>
<section id="checkout" translate="label" type="text" sortOrder="305" showInDefault="1" showInWebsite="1" showInStore="1">
<group id="cart" translate="label" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<field id="grouped_product_image" translate="label" type="select" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<field id="grouped_product_image" translate="label" type="select" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
<label>Grouped Product Image</label>
<source_model>Magento\Catalog\Model\Config\Source\Product\Thumbnail</source_model>
</field>
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Newsletter/Block/Adminhtml/Problem.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Problem extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'problem/list.phtml';
protected $_template = 'Magento_Newsletter::problem/list.phtml';

/**
* @var \Magento\Newsletter\Model\ResourceModel\Problem\Collection
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Newsletter/Block/Adminhtml/Queue/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Edit extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'queue/edit.phtml';
protected $_template = 'Magento_Newsletter::queue/edit.phtml';

/**
* Core registry
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Newsletter/Block/Adminhtml/Subscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Subscriber extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'subscriber/list.phtml';
protected $_template = 'Magento_Newsletter::subscriber/list.phtml';

/**
* @var \Magento\Newsletter\Model\ResourceModel\Queue\CollectionFactory
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Newsletter/Block/Adminhtml/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Template extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'template/list.phtml';
protected $_template = 'Magento_Newsletter::template/list.phtml';

/**
* @return $this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ class Banktransfer extends \Magento\OfflinePayments\Block\Form\AbstractInstructi
*
* @var string
*/
protected $_template = 'form/banktransfer.phtml';
protected $_template = 'Magento_OfflinePayments::form/banktransfer.phtml';
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ class Cashondelivery extends \Magento\OfflinePayments\Block\Form\AbstractInstruc
*
* @var string
*/
protected $_template = 'form/cashondelivery.phtml';
protected $_template = 'Magento_OfflinePayments::form/cashondelivery.phtml';
}
2 changes: 1 addition & 1 deletion app/code/Magento/Payment/Block/Info/Instructions.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Instructions extends \Magento\Payment\Block\Info
/**
* @var string
*/
protected $_template = 'info/instructions.phtml';
protected $_template = 'Magento_Payment::info/instructions.phtml';

/**
* Get instructions text from order payment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ class Form extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'billing/agreement/view/form.phtml';
protected $_template = 'Magento_Paypal::billing/agreement/view/form.phtml';
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Info extends \Magento\Backend\Block\Template implements \Magento\Backend\B
/**
* @var string
*/
protected $_template = 'billing/agreement/view/tab/info.phtml';
protected $_template = 'Magento_Paypal::billing/agreement/view/tab/info.phtml';

/**
* Core registry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ class Advanced extends \Magento\Paypal\Block\Adminhtml\System\Config\Payflowlink
*
* @var string
*/
protected $_template = 'system/config/payflowlink/advanced.phtml';
protected $_template = 'Magento_Paypal::system/config/payflowlink/advanced.phtml';
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Info extends \Magento\Config\Block\System\Config\Form\Field
*
* @var string
*/
protected $_template = 'system/config/payflowlink/info.phtml';
protected $_template = 'Magento_Paypal::system/config/payflowlink/info.phtml';

/**
* Render fieldset html
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Paypal/Block/Hosted/Pro/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ class Form extends \Magento\Payment\Block\Form
/**
* @var string
*/
protected $_template = 'hss/info.phtml';
protected $_template = 'Magento_Paypal::hss/info.phtml';
}
2 changes: 1 addition & 1 deletion app/code/Magento/Paypal/Block/Iframe.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Iframe extends \Magento\Payment\Block\Form
/**
* @var string
*/
protected $_template = 'hss/js.phtml';
protected $_template = 'Magento_Paypal::hss/js.phtml';

/**
* @var \Magento\Sales\Model\OrderFactory
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Paypal/Block/Payflow/Advanced/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Form extends \Magento\Paypal\Block\Payflow\Link\Form
/**
* @var string
*/
protected $_template = 'payflowadvanced/info.phtml';
protected $_template = 'Magento_Paypal::payflowadvanced/info.phtml';

/**
* Get frame action URL
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Paypal/Block/Payflow/Link/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Form extends \Magento\Payment\Block\Form
/**
* @var string
*/
protected $_template = 'payflowlink/info.phtml';
protected $_template = 'Magento_Paypal::payflowlink/info.phtml';

/**
* Get frame action URL
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/ProductAlert/Block/Email/Price.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Price extends \Magento\ProductAlert\Block\Email\AbstractEmail
/**
* @var string
*/
protected $_template = 'email/price.phtml';
protected $_template = 'Magento_ProductAlert::email/price.phtml';

/**
* Retrieve unsubscribe url for product
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/ProductAlert/Block/Email/Stock.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Stock extends \Magento\ProductAlert\Block\Email\AbstractEmail
/**
* @var string
*/
protected $_template = 'email/stock.phtml';
protected $_template = 'Magento_ProductAlert::email/stock.phtml';

/**
* Retrieve unsubscribe url for product
Expand Down
3 changes: 3 additions & 0 deletions app/code/Magento/Quote/Model/CouponManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public function set($cartId, $couponCode)
if (!$quote->getItemsCount()) {
throw new NoSuchEntityException(__('The "%1" Cart doesn\'t contain products.', $cartId));
}
if (!$quote->getStoreId()) {
throw new NoSuchEntityException(__('Cart isn\'t assigned to correct store'));
}
$quote->getShippingAddress()->setCollectShippingRates(true);

try {
Expand Down
10 changes: 10 additions & 0 deletions app/code/Magento/Quote/Test/Unit/Model/CouponManagementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ protected function setUp()
'save',
'getShippingAddress',
'getCouponCode',
'getStoreId',
'__wakeup'
]);
$this->quoteAddressMock = $this->createPartialMock(\Magento\Quote\Model\Quote\Address::class, [
Expand Down Expand Up @@ -98,6 +99,9 @@ public function testSetWhenCouldNotApplyCoupon()
$cartId = 33;
$couponCode = '153a-ABC';

$this->storeMock->expects($this->any())->method('getId')->will($this->returnValue(1));
$this->quoteMock->expects($this->once())->method('getStoreId')->willReturn($this->returnValue(1));

$this->quoteRepositoryMock->expects($this->once())
->method('getActive')->with($cartId)->will($this->returnValue($this->quoteMock));
$this->quoteMock->expects($this->once())->method('getItemsCount')->will($this->returnValue(12));
Expand Down Expand Up @@ -125,6 +129,9 @@ public function testSetWhenCouponCodeIsInvalid()
$cartId = 33;
$couponCode = '153a-ABC';

$this->storeMock->expects($this->any())->method('getId')->will($this->returnValue(1));
$this->quoteMock->expects($this->once())->method('getStoreId')->willReturn($this->returnValue(1));

$this->quoteRepositoryMock->expects($this->once())
->method('getActive')->with($cartId)->will($this->returnValue($this->quoteMock));
$this->quoteMock->expects($this->once())->method('getItemsCount')->will($this->returnValue(12));
Expand All @@ -144,6 +151,9 @@ public function testSet()
$cartId = 33;
$couponCode = '153a-ABC';

$this->storeMock->expects($this->any())->method('getId')->will($this->returnValue(1));
$this->quoteMock->expects($this->once())->method('getStoreId')->willReturn($this->returnValue(1));

$this->quoteRepositoryMock->expects($this->once())
->method('getActive')->with($cartId)->will($this->returnValue($this->quoteMock));
$this->quoteMock->expects($this->once())->method('getItemsCount')->will($this->returnValue(12));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Viewed extends \Magento\Backend\Block\Widget\Grid\Container
/**
* @var string
*/
protected $_template = 'report/grid/container.phtml';
protected $_template = 'Magento_Reports::report/grid/container.phtml';

/**
* @return void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Bestsellers extends \Magento\Backend\Block\Widget\Grid\Container
*
* @var string
*/
protected $_template = 'report/grid/container.phtml';
protected $_template = 'Magento_Reports::report/grid/container.phtml';

/**
* {@inheritdoc}
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Reports/Block/Adminhtml/Sales/Coupons.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Coupons extends \Magento\Backend\Block\Widget\Grid\Container
*
* @var string
*/
protected $_template = 'report/grid/container.phtml';
protected $_template = 'Magento_Reports::report/grid/container.phtml';

/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Invoiced extends \Magento\Backend\Block\Widget\Grid\Container
*
* @var string
*/
protected $_template = 'report/grid/container.phtml';
protected $_template = 'Magento_Reports::report/grid/container.phtml';

/**
* {@inheritdoc}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Refunded extends \Magento\Backend\Block\Widget\Grid\Container
*
* @var string
*/
protected $_template = 'report/grid/container.phtml';
protected $_template = 'Magento_Reports::report/grid/container.phtml';

/**
* {@inheritdoc}
Expand Down
Loading