Skip to content

Commit

Permalink
🔃 [EngCom] Public Pull Requests - 2.1-develop
Browse files Browse the repository at this point in the history
Accepted Public Pull Requests:
 - #17192: [Backport] Filter test result collection with the cron job code defined in the c� (by @gelanivishal)
 - #17172: Declare module namespace before template path name (by @mage2pratik)
 - #17253: [Backport] fix: change "My Dashboard" to "My Account", fixes #16007 (by @gelanivishal)


Fixed GitHub Issues:
 - #16243: Integration test ProcessCronQueueObserverTest.php succeeds regardless of magento config fixture (reported by @evktalo) has been fixed in #17192 by @gelanivishal in 2.1-develop branch
   Related commits:
     1. 1ed15d2
  • Loading branch information
Stanislav Idolov authored Aug 1, 2018
2 parents 83044ca + 79e11cb commit 15b9b26
Show file tree
Hide file tree
Showing 30 changed files with 34 additions and 33 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/Cookie/view/frontend/web/js/notices.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ define([
});

if ($.mage.cookies.get(this.options.cookieName)) {
window.location.reload();
this.element.hide();
} else {
window.location.href = this.options.noCookiesUrl;
}
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Customer/etc/frontend/page_types.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<type id="customer_account_createpassword" label="Reset a Password"/>
<type id="customer_account_edit" label="Customer Account Edit Form"/>
<type id="customer_account_forgotpassword" label="Customer Forgot Password Form"/>
<type id="customer_account_index" label="Customer My Account Dashboard"/>
<type id="customer_account_index" label="Customer My Account"/>
<type id="customer_account_login" label="Customer Account Login Form"/>
<type id="customer_account_logoutsuccess" label="Customer Account Logout Success"/>
<type id="customer_address_form" label="Customer My Account Address Edit Form"/>
Expand Down
2 changes: 0 additions & 2 deletions app/code/Magento/Customer/i18n/en_US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -512,10 +512,8 @@ Type,Type
"Send Welcome Email From","Send Welcome Email From"
Addresses,Addresses
"Are you sure you want to delete this item?","Are you sure you want to delete this item?"
"Account Dashboard","Account Dashboard"
"Edit Account Information","Edit Account Information"
"Password forgotten","Password forgotten"
"My Dashboard","My Dashboard"
"You are signed out","You are signed out"
"No Password","No Password"
"Weak","Weak"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<block class="Magento\Framework\View\Element\Html\Links" name="customer_account_navigation" before="-" template="Magento_Customer::account/navigation.phtml">
<block class="Magento\Framework\View\Element\Html\Link\Current" name="customer-account-navigation-account-link">
<arguments>
<argument name="label" xsi:type="string" translate="true">Account Dashboard</argument>
<argument name="label" xsi:type="string" translate="true">My Account</argument>
<argument name="path" xsi:type="string">customer/account</argument>
</arguments>
</block>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<body>
<referenceBlock name="page.main.title">
<action method="setPageTitle">
<argument translate="true" name="title" xsi:type="string">My Dashboard</argument>
<argument translate="true" name="title" xsi:type="string">My Account</argument>
</action>
</referenceBlock>
<referenceContainer name="content">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public function getForm()
}

/**
* Return return template name for JS
* Return template name for JS
*
* @return string
*/
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 @@ -20,7 +20,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
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 @@ -16,7 +16,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
2 changes: 1 addition & 1 deletion app/code/Magento/Rss/Block/Feeds.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Feeds extends \Magento\Framework\View\Element\Template
/**
* @var string
*/
protected $_template = 'feeds.phtml';
protected $_template = 'Magento_Rss::feeds.phtml';

/**
* @var \Magento\Framework\App\Rss\RssManagerInterface
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Sales/Block/Order/History.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class History extends \Magento\Framework\View\Element\Template
/**
* @var string
*/
protected $_template = 'order/history.phtml';
protected $_template = 'Magento_Sales::order/history.phtml';

/**
* @var \Magento\Sales\Model\ResourceModel\Order\CollectionFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Grid extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'order/packaging/grid.phtml';
protected $_template = 'Magento_Shipping::order/packaging/grid.phtml';

/**
* Core registry
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Shipping/Block/Order/Shipment.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Shipment extends \Magento\Framework\View\Element\Template
/**
* @var string
*/
protected $_template = 'order/shipment.phtml';
protected $_template = 'Magento_Shipping::order/shipment.phtml';

/**
* Core registry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Tree extends \Magento\Catalog\Block\Adminhtml\Category\AbstractCategory
/**
* @var string
*/
protected $_template = 'categories.phtml';
protected $_template = 'Magento_UrlRewrite::categories.phtml';

/**
* Adminhtml data
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/UrlRewrite/Block/Selector.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Selector extends \Magento\Backend\Block\Template
/**
* @var string
*/
protected $_template = 'selector.phtml';
protected $_template = 'Magento_UrlRewrite::selector.phtml';

/**
* Set block template and get available modes
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/User/Block/Role/Tab/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Edit extends \Magento\Backend\Block\Widget\Form implements \Magento\Backen
/**
* @var string
*/
protected $_template = 'role/edit.phtml';
protected $_template = 'Magento_User::role/edit.phtml';

/**
* Root ACL Resource
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Weee/Block/Renderer/Weee/Tax.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Tax extends \Magento\Backend\Block\Widget implements \Magento\Framework\Da
/**
* @var string
*/
protected $_template = 'renderer/tax.phtml';
protected $_template = 'Magento_Weee::renderer/tax.phtml';

/**
* Core registry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Layout extends \Magento\Backend\Block\Template implements \Magento\Framewo
/**
* @var string
*/
protected $_template = 'instance/edit/layout.phtml';
protected $_template = 'Magento_Widget::instance/edit/layout.phtml';

/**
* @var \Magento\Catalog\Model\Product\Type
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Wishlist/Block/Rss/EmailLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class EmailLink extends Link
/**
* @var string
*/
protected $_template = 'rss/email.phtml';
protected $_template = 'Magento_Wishlist::rss/email.phtml';

/**
* @return array
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Wishlist/Block/Share/Email/Items.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Items extends \Magento\Wishlist\Block\AbstractBlock
/**
* @var string
*/
protected $_template = 'email/items.phtml';
protected $_template = 'Magento_Wishlist::email/items.phtml';

/**
* Retrieve Product View URL
Expand Down
1 change: 0 additions & 1 deletion app/design/frontend/Magento/blank/i18n/en_US.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Summary,Summary
"Account Dashboard","Account Dashboard"
"Account Information","Account Information"
"Address Book","Address Book"
Menu,Menu
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<referenceContainer name="sidebar.main">
<block class="Magento\Framework\View\Element\Template" name="customer_account_navigation_block" template="Magento_Theme::html/collapsible.phtml" before="-">
<arguments>
<argument name="block_title" translate="true" xsi:type="string">Account Dashboard</argument>
<argument name="block_title" translate="true" xsi:type="string">My Account</argument>
<argument name="block_css" xsi:type="string">block-collapsible-nav</argument>
</arguments>
<block class="Magento\Framework\View\Element\Html\Links" name="customer_account_navigation" before="-">
Expand All @@ -19,7 +19,7 @@
</arguments>
<block class="Magento\Framework\View\Element\Html\Link\Current" name="customer-account-navigation-account-link">
<arguments>
<argument name="label" xsi:type="string" translate="true">Account Dashboard</argument>
<argument name="label" xsi:type="string" translate="true">My Account</argument>
<argument name="path" xsi:type="string">customer/account</argument>
</arguments>
</block>
Expand Down
3 changes: 3 additions & 0 deletions app/design/frontend/Magento/luma/i18n/en_US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ Password:,Password:
"Placed on <span class=""no-link"">%created_at</span>","Placed on <span class=""no-link"">%created_at</span>"
"Your shipping confirmation is below. Thank you again for your business.","Your shipping confirmation is below. Thank you again for your business."
"Your Shipment #%shipment_id for Order #%order_id","Your Shipment #%shipment_id for Order #%order_id"
"Update to your %store_name shipment","Update to your %store_name shipment"
"Address Book","Address Book"
"Account Information","Account Information"
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AssertCustomerDefaultAddresses extends AbstractConstraint
*/
public function processAssert(CustomerAccountIndex $customerAccountIndex, Address $address)
{
$customerAccountIndex->getAccountMenuBlock()->openMenuItem('Account Dashboard');
$customerAccountIndex->getAccountMenuBlock()->openMenuItem('My Account');
sleep(6);
$defaultBillingAddress = explode(
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AssertCustomerRedirectToDashboard extends AbstractConstraint
/**
* Dashboard Message on account index page.
*/
const DASHBOARD_MESSAGE = 'My Dashboard';
const DASHBOARD_MESSAGE = 'My Account';

/**
* Constraint severeness
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function run()
{
$this->customerAccount->open();
$this->cmsIndex->getCmsPageBlock()->waitPageInit();
if ($this->cmsIndex->getTitleBlock()->getTitle() != 'Customer Login') {
if ($this->cmsIndex->getTitleBlock()->getTitle() === 'My Account') {
$this->cmsIndex->getLinksBlock()->openLink('Sign Out');
$this->cmsIndex->getCmsPageBlock()->waitUntilTextIsVisible('Home Page');
$this->cmsIndex->getCmsPageBlock()->waitPageInit();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ protected function setUp()
}

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
<block class="Magento\Framework\View\Element\Text" name="block1">
<block class="Magento\Framework\View\Element\Text" name="block2" group="group1">
<arguments>
<argument xsi:type="string" name="text">blok2</argument>
<argument xsi:type="string" name="text">block2</argument>
</arguments>
</block>
<block class="Magento\Framework\View\Element\Text" name="block3" group="group1" >
<arguments>
<argument xsi:type="string" name="text">blok3</argument>
<argument xsi:type="string" name="text">block3</argument>
</arguments>
</block>
<block class="Magento\Framework\View\Element\Text" name="block4">
<arguments>
<argument xsi:type="string" name="text">blok4</argument>
<argument xsi:type="string" name="text">block4</argument>
</arguments>
</block>
</block>
Expand Down

0 comments on commit 15b9b26

Please sign in to comment.