Skip to content

Commit 15b9b26

Browse files
author
Stanislav Idolov
authored
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - magento#17192: [Backport] Filter test result collection with the cron job code defined in the c� (by @gelanivishal) - magento#17172: Declare module namespace before template path name (by @mage2pratik) - magento#17253: [Backport] fix: change "My Dashboard" to "My Account", fixes magento#16007 (by @gelanivishal) Fixed GitHub Issues: - magento#16243: Integration test ProcessCronQueueObserverTest.php succeeds regardless of magento config fixture (reported by @evktalo) has been fixed in magento#17192 by @gelanivishal in 2.1-develop branch Related commits: 1. 1ed15d2
2 parents 83044ca + 79e11cb commit 15b9b26

File tree

30 files changed

+34
-33
lines changed

30 files changed

+34
-33
lines changed

app/code/Magento/Cookie/view/frontend/web/js/notices.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ define([
2525
});
2626

2727
if ($.mage.cookies.get(this.options.cookieName)) {
28-
window.location.reload();
28+
this.element.hide();
2929
} else {
3030
window.location.href = this.options.noCookiesUrl;
3131
}

app/code/Magento/Customer/etc/frontend/page_types.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<type id="customer_account_createpassword" label="Reset a Password"/>
1212
<type id="customer_account_edit" label="Customer Account Edit Form"/>
1313
<type id="customer_account_forgotpassword" label="Customer Forgot Password Form"/>
14-
<type id="customer_account_index" label="Customer My Account Dashboard"/>
14+
<type id="customer_account_index" label="Customer My Account"/>
1515
<type id="customer_account_login" label="Customer Account Login Form"/>
1616
<type id="customer_account_logoutsuccess" label="Customer Account Logout Success"/>
1717
<type id="customer_address_form" label="Customer My Account Address Edit Form"/>

app/code/Magento/Customer/i18n/en_US.csv

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,10 +512,8 @@ Type,Type
512512
"Send Welcome Email From","Send Welcome Email From"
513513
Addresses,Addresses
514514
"Are you sure you want to delete this item?","Are you sure you want to delete this item?"
515-
"Account Dashboard","Account Dashboard"
516515
"Edit Account Information","Edit Account Information"
517516
"Password forgotten","Password forgotten"
518-
"My Dashboard","My Dashboard"
519517
"You are signed out","You are signed out"
520518
"No Password","No Password"
521519
"Weak","Weak"

app/code/Magento/Customer/view/frontend/layout/customer_account.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<block class="Magento\Framework\View\Element\Html\Links" name="customer_account_navigation" before="-" template="Magento_Customer::account/navigation.phtml">
1616
<block class="Magento\Framework\View\Element\Html\Link\Current" name="customer-account-navigation-account-link">
1717
<arguments>
18-
<argument name="label" xsi:type="string" translate="true">Account Dashboard</argument>
18+
<argument name="label" xsi:type="string" translate="true">My Account</argument>
1919
<argument name="path" xsi:type="string">customer/account</argument>
2020
</arguments>
2121
</block>

app/code/Magento/Customer/view/frontend/layout/customer_account_index.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<body>
1111
<referenceBlock name="page.main.title">
1212
<action method="setPageTitle">
13-
<argument translate="true" name="title" xsi:type="string">My Dashboard</argument>
13+
<argument translate="true" name="title" xsi:type="string">My Account</argument>
1414
</action>
1515
</referenceBlock>
1616
<referenceContainer name="content">

app/code/Magento/Newsletter/Block/Adminhtml/Template/Edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function getForm()
206206
}
207207

208208
/**
209-
* Return return template name for JS
209+
* Return template name for JS
210210
*
211211
* @return string
212212
*/

app/code/Magento/OfflinePayments/Block/Form/Banktransfer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ class Banktransfer extends \Magento\OfflinePayments\Block\Form\AbstractInstructi
1515
*
1616
* @var string
1717
*/
18-
protected $_template = 'form/banktransfer.phtml';
18+
protected $_template = 'Magento_OfflinePayments::form/banktransfer.phtml';
1919
}

app/code/Magento/OfflinePayments/Block/Form/Cashondelivery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ class Cashondelivery extends \Magento\OfflinePayments\Block\Form\AbstractInstruc
1515
*
1616
* @var string
1717
*/
18-
protected $_template = 'form/cashondelivery.phtml';
18+
protected $_template = 'Magento_OfflinePayments::form/cashondelivery.phtml';
1919
}

app/code/Magento/Payment/Block/Info/Instructions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Instructions extends \Magento\Payment\Block\Info
2020
/**
2121
* @var string
2222
*/
23-
protected $_template = 'info/instructions.phtml';
23+
protected $_template = 'Magento_Payment::info/instructions.phtml';
2424

2525
/**
2626
* Get instructions text from order payment

app/code/Magento/ProductAlert/Block/Email/Price.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Price extends \Magento\ProductAlert\Block\Email\AbstractEmail
1515
/**
1616
* @var string
1717
*/
18-
protected $_template = 'email/price.phtml';
18+
protected $_template = 'Magento_ProductAlert::email/price.phtml';
1919

2020
/**
2121
* Retrieve unsubscribe url for product

app/code/Magento/ProductAlert/Block/Email/Stock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Stock extends \Magento\ProductAlert\Block\Email\AbstractEmail
1616
/**
1717
* @var string
1818
*/
19-
protected $_template = 'email/stock.phtml';
19+
protected $_template = 'Magento_ProductAlert::email/stock.phtml';
2020

2121
/**
2222
* Retrieve unsubscribe url for product

app/code/Magento/Rss/Block/Feeds.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Feeds extends \Magento\Framework\View\Element\Template
1414
/**
1515
* @var string
1616
*/
17-
protected $_template = 'feeds.phtml';
17+
protected $_template = 'Magento_Rss::feeds.phtml';
1818

1919
/**
2020
* @var \Magento\Framework\App\Rss\RssManagerInterface

app/code/Magento/Sales/Block/Order/History.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class History extends \Magento\Framework\View\Element\Template
1616
/**
1717
* @var string
1818
*/
19-
protected $_template = 'order/history.phtml';
19+
protected $_template = 'Magento_Sales::order/history.phtml';
2020

2121
/**
2222
* @var \Magento\Sales\Model\ResourceModel\Order\CollectionFactory

app/code/Magento/Shipping/Block/Adminhtml/Order/Packaging/Grid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Grid extends \Magento\Backend\Block\Template
1010
/**
1111
* @var string
1212
*/
13-
protected $_template = 'order/packaging/grid.phtml';
13+
protected $_template = 'Magento_Shipping::order/packaging/grid.phtml';
1414

1515
/**
1616
* Core registry

app/code/Magento/Shipping/Block/Order/Shipment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Shipment extends \Magento\Framework\View\Element\Template
1515
/**
1616
* @var string
1717
*/
18-
protected $_template = 'order/shipment.phtml';
18+
protected $_template = 'Magento_Shipping::order/shipment.phtml';
1919

2020
/**
2121
* Core registry

app/code/Magento/UrlRewrite/Block/Catalog/Category/Tree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Tree extends \Magento\Catalog\Block\Adminhtml\Category\AbstractCategory
2626
/**
2727
* @var string
2828
*/
29-
protected $_template = 'categories.phtml';
29+
protected $_template = 'Magento_UrlRewrite::categories.phtml';
3030

3131
/**
3232
* Adminhtml data

app/code/Magento/UrlRewrite/Block/Selector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Selector extends \Magento\Backend\Block\Template
1818
/**
1919
* @var string
2020
*/
21-
protected $_template = 'selector.phtml';
21+
protected $_template = 'Magento_UrlRewrite::selector.phtml';
2222

2323
/**
2424
* Set block template and get available modes

app/code/Magento/User/Block/Role/Tab/Edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Edit extends \Magento\Backend\Block\Widget\Form implements \Magento\Backen
1818
/**
1919
* @var string
2020
*/
21-
protected $_template = 'role/edit.phtml';
21+
protected $_template = 'Magento_User::role/edit.phtml';
2222

2323
/**
2424
* Root ACL Resource

app/code/Magento/Weee/Block/Renderer/Weee/Tax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Tax extends \Magento\Backend\Block\Widget implements \Magento\Framework\Da
3333
/**
3434
* @var string
3535
*/
36-
protected $_template = 'renderer/tax.phtml';
36+
protected $_template = 'Magento_Weee::renderer/tax.phtml';
3737

3838
/**
3939
* Core registry

app/code/Magento/Widget/Block/Adminhtml/Widget/Instance/Edit/Tab/Main/Layout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Layout extends \Magento\Backend\Block\Template implements \Magento\Framewo
2525
/**
2626
* @var string
2727
*/
28-
protected $_template = 'instance/edit/layout.phtml';
28+
protected $_template = 'Magento_Widget::instance/edit/layout.phtml';
2929

3030
/**
3131
* @var \Magento\Catalog\Model\Product\Type

app/code/Magento/Wishlist/Block/Rss/EmailLink.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class EmailLink extends Link
1919
/**
2020
* @var string
2121
*/
22-
protected $_template = 'rss/email.phtml';
22+
protected $_template = 'Magento_Wishlist::rss/email.phtml';
2323

2424
/**
2525
* @return array

app/code/Magento/Wishlist/Block/Share/Email/Items.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Items extends \Magento\Wishlist\Block\AbstractBlock
1616
/**
1717
* @var string
1818
*/
19-
protected $_template = 'email/items.phtml';
19+
protected $_template = 'Magento_Wishlist::email/items.phtml';
2020

2121
/**
2222
* Retrieve Product View URL

app/design/frontend/Magento/blank/i18n/en_US.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Summary,Summary
2-
"Account Dashboard","Account Dashboard"
32
"Account Information","Account Information"
43
"Address Book","Address Book"
54
Menu,Menu

app/design/frontend/Magento/luma/Magento_Customer/layout/customer_account.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<referenceContainer name="sidebar.main">
1111
<block class="Magento\Framework\View\Element\Template" name="customer_account_navigation_block" template="Magento_Theme::html/collapsible.phtml" before="-">
1212
<arguments>
13-
<argument name="block_title" translate="true" xsi:type="string">Account Dashboard</argument>
13+
<argument name="block_title" translate="true" xsi:type="string">My Account</argument>
1414
<argument name="block_css" xsi:type="string">block-collapsible-nav</argument>
1515
</arguments>
1616
<block class="Magento\Framework\View\Element\Html\Links" name="customer_account_navigation" before="-">
@@ -19,7 +19,7 @@
1919
</arguments>
2020
<block class="Magento\Framework\View\Element\Html\Link\Current" name="customer-account-navigation-account-link">
2121
<arguments>
22-
<argument name="label" xsi:type="string" translate="true">Account Dashboard</argument>
22+
<argument name="label" xsi:type="string" translate="true">My Account</argument>
2323
<argument name="path" xsi:type="string">customer/account</argument>
2424
</arguments>
2525
</block>

app/design/frontend/Magento/luma/i18n/en_US.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ Password:,Password:
4242
"Placed on <span class=""no-link"">%created_at</span>","Placed on <span class=""no-link"">%created_at</span>"
4343
"Your shipping confirmation is below. Thank you again for your business.","Your shipping confirmation is below. Thank you again for your business."
4444
"Your Shipment #%shipment_id for Order #%order_id","Your Shipment #%shipment_id for Order #%order_id"
45+
"Update to your %store_name shipment","Update to your %store_name shipment"
46+
"Address Book","Address Book"
47+
"Account Information","Account Information"

dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerDefaultAddresses.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class AssertCustomerDefaultAddresses extends AbstractConstraint
2424
*/
2525
public function processAssert(CustomerAccountIndex $customerAccountIndex, Address $address)
2626
{
27-
$customerAccountIndex->getAccountMenuBlock()->openMenuItem('Account Dashboard');
27+
$customerAccountIndex->getAccountMenuBlock()->openMenuItem('My Account');
2828
sleep(6);
2929
$defaultBillingAddress = explode(
3030
"\n",

dev/tests/functional/tests/app/Magento/Customer/Test/Constraint/AssertCustomerRedirectToDashboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class AssertCustomerRedirectToDashboard extends AbstractConstraint
1717
/**
1818
* Dashboard Message on account index page.
1919
*/
20-
const DASHBOARD_MESSAGE = 'My Dashboard';
20+
const DASHBOARD_MESSAGE = 'My Account';
2121

2222
/**
2323
* Constraint severeness

dev/tests/functional/tests/app/Magento/Customer/Test/TestStep/LogoutCustomerOnFrontendStep.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function run()
4949
{
5050
$this->customerAccount->open();
5151
$this->cmsIndex->getCmsPageBlock()->waitPageInit();
52-
if ($this->cmsIndex->getTitleBlock()->getTitle() != 'Customer Login') {
52+
if ($this->cmsIndex->getTitleBlock()->getTitle() === 'My Account') {
5353
$this->cmsIndex->getLinksBlock()->openLink('Sign Out');
5454
$this->cmsIndex->getCmsPageBlock()->waitUntilTextIsVisible('Home Page');
5555
$this->cmsIndex->getCmsPageBlock()->waitPageInit();

dev/tests/integration/testsuite/Magento/Cron/Observer/ProcessCronQueueObserverTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ protected function setUp()
2727
}
2828

2929
/**
30-
* @magentoConfigFixture current_store crontab/default/jobs/catalog_product_alert/schedule/cron_expr 8 * * * *
30+
* @magentoConfigFixture current_store crontab/default/jobs/catalog_product_alert/schedule/cron_expr * * * * *
3131
*/
3232
public function testDispatchScheduled()
3333
{
3434
$collection = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
3535
'Magento\Cron\Model\ResourceModel\Schedule\Collection'
3636
);
3737
$collection->addFieldToFilter('status', \Magento\Cron\Model\Schedule::STATUS_PENDING);
38+
$collection->addFieldToFilter('job_code', 'catalog_product_alert');
3839
$this->assertGreaterThan(0, $collection->count(), 'Cron has failed to schedule tasks for itself for future.');
3940
}
4041

dev/tests/integration/testsuite/Magento/Framework/View/_files/layout_directives_test/group.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
<block class="Magento\Framework\View\Element\Text" name="block1">
1010
<block class="Magento\Framework\View\Element\Text" name="block2" group="group1">
1111
<arguments>
12-
<argument xsi:type="string" name="text">blok2</argument>
12+
<argument xsi:type="string" name="text">block2</argument>
1313
</arguments>
1414
</block>
1515
<block class="Magento\Framework\View\Element\Text" name="block3" group="group1" >
1616
<arguments>
17-
<argument xsi:type="string" name="text">blok3</argument>
17+
<argument xsi:type="string" name="text">block3</argument>
1818
</arguments>
1919
</block>
2020
<block class="Magento\Framework\View\Element\Text" name="block4">
2121
<arguments>
22-
<argument xsi:type="string" name="text">blok4</argument>
22+
<argument xsi:type="string" name="text">block4</argument>
2323
</arguments>
2424
</block>
2525
</block>

0 commit comments

Comments
 (0)