Skip to content

Commit d7405ff

Browse files
author
Magento CICD
authored
Merge c30a05a into MAGETWO-63116_JSON_ERROR
2 parents 505b1a7 + c30a05a commit d7405ff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+929
-94
lines changed

app/code/Magento/Catalog/Model/Category.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ class Category extends \Magento\Catalog\Model\AbstractModel implements
116116
* URL rewrite model
117117
*
118118
* @var \Magento\UrlRewrite\Model\UrlRewrite
119+
* @deprecated since 2.2.0
119120
*/
120121
protected $_urlRewrite;
121122

app/code/Magento/CatalogUrlRewrite/Model/Map/DatabaseMapInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
*/
66
namespace Magento\CatalogUrlRewrite\Model\Map;
77

8-
use Magento\Framework\DB\Select;
9-
108
/**
119
* Interface for a mysql data type of a map
1210
*

app/code/Magento/Indexer/Model/Processor/Handler.php

Lines changed: 0 additions & 39 deletions
This file was deleted.

app/code/Magento/UrlRewrite/Model/MergeDataProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* This class is to be used as a container for new generated url rewrites by adding new ones using merge method
1212
* Removes duplicates for a set/array of Url Rewrites based on the unique key of the url_rewrites table
1313
*
14+
* @api
1415
*/
1516
class MergeDataProvider
1617
{

app/code/Magento/UrlRewrite/Model/StorageInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
*/
66
namespace Magento\UrlRewrite\Model;
77

8+
/**
9+
* @api
10+
*/
811
interface StorageInterface extends UrlFinderInterface, UrlPersistInterface
912
{
1013
}

app/code/Magento/UrlRewrite/Model/UrlFinderInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
/**
99
* Url Finder Interface
10+
* @api
1011
*/
1112
interface UrlFinderInterface
1213
{

app/code/Magento/UrlRewrite/Model/UrlPersistInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
/**
99
* Url Persist Interface
10+
* @api
1011
*/
1112
interface UrlPersistInterface
1213
{

app/code/Magento/UrlRewrite/Service/V1/Data/UrlRewrite.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
/**
1313
* Data abstract class for url storage
14+
* @api
1415
*/
1516
class UrlRewrite extends AbstractSimpleObject
1617
{

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/ProductForm.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ class ProductForm extends FormSections
7272
*/
7373
protected $newAttributeModal = '.product_form_product_form_add_attribute_modal_create_new_attribute_modal';
7474

75+
/**
76+
* Website checkbox xpath selector.
77+
*
78+
* @var string
79+
*/
80+
protected $websiteCheckbox = '//label[text()="%s"]/../input';
81+
7582
/**
7683
* Fill the product form.
7784
*
@@ -138,6 +145,17 @@ public function openSection($sectionName)
138145
return $this;
139146
}
140147

148+
/**
149+
* Unassign product from website by website name.
150+
*
151+
* @param string $name
152+
*/
153+
public function unassignFromWebsite($name)
154+
{
155+
$this->openSection('websites');
156+
$this->_rootElement->find(sprintf($this->websiteCheckbox, $name), Locator::SELECTOR_XPATH)->click();
157+
}
158+
141159
/**
142160
* Wait page to load.
143161
*

dev/tests/functional/tests/app/Magento/Catalog/Test/Page/Adminhtml/CatalogProductEdit.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
<block name="addAttributeModal" class="Magento\Catalog\Test\Block\Adminhtml\Product\Modal\AddAttribute" locator=".product_form_product_form_add_attribute_modal" strategy="css selector"/>
1313
<block name="newAttributeModal" class="Magento\Catalog\Test\Block\Adminhtml\Product\Modal\NewAttribute" locator=".product_form_product_form_add_attribute_modal_create_new_attribute_modal" strategy="css selector"/>
1414
<block name="productForm" class="Magento\Catalog\Test\Block\Adminhtml\Product\ProductForm" locator="[id='page:main-container']" strategy="css selector"/>
15+
<block name="storeSwitcherBlock" class="Magento\Store\Test\Block\Switcher" locator=".store-switcher" strategy="css selector" />
1516
</page>
1617
</config>

0 commit comments

Comments
 (0)