Skip to content

Commit 15479e0

Browse files
Merge branch 'MAGETWO-49634' of https://github.corp.magento.com/magento-tango/magento2ce into MAGETWO-49914-2
2 parents a585ab5 + 4947089 commit 15479e0

File tree

11 files changed

+0
-558
lines changed

11 files changed

+0
-558
lines changed

app/code/Magento/Catalog/Test/Unit/Ui/DataProvider/GrouperTest.php

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

app/code/Magento/Catalog/Test/Unit/Ui/DataProvider/Product/Form/Modifier/AbstractModifierTest.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use Magento\Store\Model\Store;
1414
use Magento\Ui\DataProvider\Modifier\ModifierInterface;
1515
use Magento\Framework\Stdlib\ArrayManager;
16-
use Magento\Catalog\Ui\DataProvider\Grouper;
1716

1817
/**
1918
* Class AbstractDataProviderTest
@@ -51,11 +50,6 @@ abstract class AbstractModifierTest extends \PHPUnit_Framework_TestCase
5150
*/
5251
protected $arrayManagerMock;
5352

54-
/**
55-
* @var Grouper|\PHPUnit_Framework_MockObject_MockObject
56-
*/
57-
protected $grouperMock;
58-
5953
protected function setUp()
6054
{
6155
$this->objectManager = new ObjectManager($this);
@@ -77,9 +71,6 @@ protected function setUp()
7771
$this->arrayManagerMock = $this->getMockBuilder(ArrayManager::class)
7872
->disableOriginalConstructor()
7973
->getMock();
80-
$this->grouperMock = $this->getMockBuilder(Grouper::class)
81-
->disableOriginalConstructor()
82-
->getMock();
8374

8475
$this->arrayManagerMock->expects($this->any())
8576
->method('replace')
@@ -93,12 +84,6 @@ protected function setUp()
9384
$this->arrayManagerMock->expects($this->any())
9485
->method('merge')
9586
->willReturnArgument(1);
96-
$this->grouperMock->expects($this->any())
97-
->method('groupMetaElements')
98-
->willReturnArgument(0);
99-
$this->grouperMock->expects($this->any())
100-
->method('remove')
101-
->willReturnArgument(1);
10287
$this->arrayManagerMock->expects($this->any())
10388
->method('remove')
10489
->willReturnArgument(1);

app/code/Magento/Catalog/Test/Unit/Ui/DataProvider/Product/Form/Modifier/AdvancedPricingTest.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace Magento\Catalog\Test\Unit\Ui\DataProvider\Product\Form\Modifier;
77

88
use Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\AdvancedPricing;
9-
use Magento\Catalog\Ui\DataProvider\Grouper;
109
use Magento\Store\Model\StoreManagerInterface;
1110
use Magento\Customer\Api\Data\GroupInterface as CustomerGroupInterface;
1211
use Magento\Customer\Api\GroupManagementInterface;
@@ -25,11 +24,6 @@
2524
*/
2625
class AdvancedPricingTest extends AbstractModifierTest
2726
{
28-
/**
29-
* @var Grouper|\PHPUnit_Framework_MockObject_MockObject
30-
*/
31-
protected $grouperMock;
32-
3327
/**
3428
* @var StoreManagerInterface|\PHPUnit_Framework_MockObject_MockObject
3529
*/
@@ -78,9 +72,6 @@ class AdvancedPricingTest extends AbstractModifierTest
7872
protected function setUp()
7973
{
8074
parent::setUp();
81-
$this->grouperMock = $this->getMockBuilder(Grouper::class)
82-
->disableOriginalConstructor()
83-
->getMock();
8475
$this->storeManagerMock = $this->getMockBuilder(StoreManagerInterface::class)
8576
->getMockForAbstractClass();
8677
$this->groupRepositoryMock = $this->getMockBuilder(GroupRepositoryInterface::class)
@@ -117,7 +108,6 @@ protected function createModel()
117108
{
118109
return $this->objectManager->getObject(AdvancedPricing::class, [
119110
'locator' => $this->locatorMock,
120-
'grouper' => $this->grouperMock,
121111
'storeManager' => $this->storeManagerMock,
122112
'groupRepository' => $this->groupRepositoryMock,
123113
'groupManagement' => $this->groupManagementMock,

app/code/Magento/Catalog/Test/Unit/Ui/DataProvider/Product/Form/Modifier/GeneralTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ protected function createModel()
2222
{
2323
return $this->objectManager->getObject(General::class, [
2424
'locator' => $this->locatorMock,
25-
'grouper' => $this->grouperMock,
2625
'arrayManager' => $this->arrayManagerMock,
2726
]);
2827
}

0 commit comments

Comments
 (0)