Skip to content

Commit a557683

Browse files
committed
Fixed static tests
1 parent 9b76f0a commit a557683

File tree

22 files changed

+107
-33
lines changed

22 files changed

+107
-33
lines changed

app/code/Magento/Bundle/Controller/Adminhtml/Bundle/Product/Edit/Crosssell.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@
66
*/
77
namespace Magento\Bundle\Controller\Adminhtml\Bundle\Product\Edit;
88

9+
use Magento\Catalog\Controller\Adminhtml\Product\Crosssell as CatalogCrossel;
10+
use Magento\Framework\App\Action\HttpPostActionInterface;
11+
912
/**
1013
* Class Crosssell
1114
*
1215
* @package Magento\Bundle\Controller\Adminhtml\Bundle\Product\Edit
1316
* @deprecated Not used since cross-sell products grid moved to UI components.
1417
* @see Magento_Catalog::view/adminhtml/ui_component/crosssell_product_listing.xml
1518
*/
16-
class Crosssell extends \Magento\Catalog\Controller\Adminhtml\Product\Crosssell
19+
class Crosssell extends CatalogCrossel implements HttpPostActionInterface
1720
{
1821
}

app/code/Magento/Bundle/Controller/Adminhtml/Bundle/Product/Edit/CrosssellGrid.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@
66
*/
77
namespace Magento\Bundle\Controller\Adminhtml\Bundle\Product\Edit;
88

9+
use Magento\Catalog\Controller\Adminhtml\Product\CrosssellGrid as CatalogCrosssellGrid;
10+
use Magento\Framework\App\Action\HttpPostActionInterface;
11+
912
/**
1013
* Class CrosssellGrid
1114
*
1215
* @package Magento\Bundle\Controller\Adminhtml\Bundle\Product\Edit
1316
* @deprecated Not used since cross-sell products grid moved to UI components.
1417
* @see Magento_Catalog::view/adminhtml/ui_component/crosssell_product_listing.xml
1518
*/
16-
class CrosssellGrid extends \Magento\Catalog\Controller\Adminhtml\Product\CrosssellGrid
19+
class CrosssellGrid extends CatalogCrosssellGrid implements HttpPostActionInterface
1720
{
1821
}

app/code/Magento/Bundle/Controller/Adminhtml/Bundle/Product/Edit/Related.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@
66
*/
77
namespace Magento\Bundle\Controller\Adminhtml\Bundle\Product\Edit;
88

9+
use Magento\Catalog\Controller\Adminhtml\Product\Related as CatalogRelated;
10+
use Magento\Framework\App\Action\HttpPostActionInterface;
11+
912
/**
1013
* Class Related
1114
*
1215
* @package Magento\Bundle\Controller\Adminhtml\Bundle\Product\Edit
1316
* @deprecated Not used since related products grid moved to UI components.
1417
* @see Magento_Catalog::view/adminhtml/ui_component/related_product_listing.xml
1518
*/
16-
class Related extends \Magento\Catalog\Controller\Adminhtml\Product\Related
19+
class Related extends CatalogRelated implements HttpPostActionInterface
1720
{
1821
}

app/code/Magento/Bundle/Controller/Adminhtml/Bundle/Product/Edit/RelatedGrid.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@
66
*/
77
namespace Magento\Bundle\Controller\Adminhtml\Bundle\Product\Edit;
88

9+
use Magento\Catalog\Controller\Adminhtml\Product\RelatedGrid as CatalogRelatedGrid;
10+
use Magento\Framework\App\Action\HttpPostActionInterface;
11+
912
/**
1013
* Class RelatedGrid
1114
*
1215
* @package Magento\Bundle\Controller\Adminhtml\Bundle\Product\Edit
1316
* @deprecated Not used since related products grid moved to UI components.
1417
* @see Magento_Catalog::view/adminhtml/ui_component/related_product_listing.xml
1518
*/
16-
class RelatedGrid extends \Magento\Catalog\Controller\Adminhtml\Product\RelatedGrid
19+
class RelatedGrid extends CatalogRelatedGrid implements HttpPostActionInterface
1720
{
1821
}

app/code/Magento/Bundle/Controller/Adminhtml/Bundle/Product/Edit/Upsell.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@
66
*/
77
namespace Magento\Bundle\Controller\Adminhtml\Bundle\Product\Edit;
88

9+
use Magento\Catalog\Controller\Adminhtml\Product\Upsell as CatalogUpsell;
10+
use Magento\Framework\App\Action\HttpPostActionInterface;
11+
912
/**
1013
* Class Upsell
1114
*
1215
* @package Magento\Bundle\Controller\Adminhtml\Bundle\Product\Edit
1316
* @deprecated Not used since upsell products grid moved to UI components.
1417
* @see Magento_Catalog::view/adminhtml/ui_component/upsell_product_listing.xml
1518
*/
16-
class Upsell extends \Magento\Catalog\Controller\Adminhtml\Product\Upsell
19+
class Upsell extends CatalogUpsell implements HttpPostActionInterface
1720
{
1821
}

app/code/Magento/Catalog/Block/Adminhtml/Product/Edit/Tab/Crosssell.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
use Magento\Catalog\Model\Product;
1111

1212
/**
13+
* Crossel product edit tab
14+
*
1315
* @api
1416
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1517
* @since 100.0.2

app/code/Magento/Catalog/Block/Adminhtml/Product/Edit/Tab/Related.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
use Magento\Backend\Block\Widget\Grid\Extended;
1010

1111
/**
12+
* Related product edit tab
13+
*
1214
* @api
1315
* @since 100.0.2
1416
* @deprecated Not used since related products grid moved to UI components.

app/code/Magento/Catalog/Block/Adminhtml/Product/Edit/Tab/Upsell.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
namespace Magento\Catalog\Block\Adminhtml\Product\Edit\Tab;
77

88
/**
9+
* Upsell product edit tab
10+
*
911
* @api
1012
* @since 100.0.2
1113
* @deprecated Not used since upsell products grid moved to UI components.

app/code/Magento/Catalog/Controller/Adminhtml/Product/Crosssell.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66
*/
77
namespace Magento\Catalog\Controller\Adminhtml\Product;
88

9+
use Magento\Catalog\Controller\Adminhtml\Product;
10+
use Magento\Framework\App\Action\HttpPostActionInterface;
11+
912
/**
1013
* Class Crosssell
1114
*
1215
* @package Magento\Catalog\Controller\Adminhtml\Product
1316
* @deprecated Not used since cross-sell products grid moved to UI components.
1417
* @see Magento_Catalog::view/adminhtml/ui_component/crosssell_product_listing.xml
1518
*/
16-
class Crosssell extends \Magento\Catalog\Controller\Adminhtml\Product
19+
class Crosssell extends Product implements HttpPostActionInterface
1720
{
1821
/**
1922
* @var \Magento\Framework\View\Result\LayoutFactory

app/code/Magento/Catalog/Controller/Adminhtml/Product/CrosssellGrid.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66
*/
77
namespace Magento\Catalog\Controller\Adminhtml\Product;
88

9+
use Magento\Catalog\Controller\Adminhtml\Product;
10+
use Magento\Framework\App\Action\HttpPostActionInterface;
11+
912
/**
1013
* Class CrosssellGrid
1114
*
1215
* @package Magento\Catalog\Controller\Adminhtml\Product
1316
* @deprecated Not used since cross-sell products grid moved to UI components.
1417
* @see Magento_Catalog::view/adminhtml/ui_component/crosssell_product_listing.xml
1518
*/
16-
class CrosssellGrid extends \Magento\Catalog\Controller\Adminhtml\Product
19+
class CrosssellGrid extends Product implements HttpPostActionInterface
1720
{
1821
/**
1922
* @var \Magento\Framework\View\Result\LayoutFactory

0 commit comments

Comments
 (0)