Skip to content

Commit 550ce14

Browse files
author
Hwashiang Yu
committed
MC-30175: UI component rendering config
- Resolved static and unit test failures
1 parent a3fb28a commit 550ce14

File tree

14 files changed

+45
-36
lines changed

14 files changed

+45
-36
lines changed

app/code/Magento/Catalog/Test/Unit/Ui/Component/Product/MassActionTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
use Magento\Framework\AuthorizationInterface;
1212
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
1313
use Magento\Framework\View\Element\UiComponent\ContextInterface;
14+
use PHPUnit\Framework\MockObject\MockObject;
1415

1516
/**
1617
* MassAction test for Component Product
1718
*/
1819
class MassActionTest extends \PHPUnit\Framework\TestCase
1920
{
2021
/**
21-
* @var ContextInterface|\PHPUnit_Framework_MockObject_MockObject
22+
* @var ContextInterface|MockObject
2223
*/
2324
private $contextMock;
2425

@@ -28,7 +29,7 @@ class MassActionTest extends \PHPUnit\Framework\TestCase
2829
private $objectManager;
2930

3031
/**
31-
* @var AuthorizationInterface|\PHPUnit_Framework_MockObject_MockObject
32+
* @var AuthorizationInterface|MockObject
3233
*/
3334
private $authorizationMock;
3435

app/code/Magento/CatalogInventory/Ui/DataProvider/Product/Form/Modifier/AdvancedInventory.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ private function prepareMeta()
186186

187187
if ($pathField) {
188188
$fieldsetPath = $this->arrayManager->slicePath($pathField, 0, -4);
189-
190189
$this->meta = $this->arrayManager->merge(
191190
$pathField . '/arguments/data/config',
192191
$this->meta,
@@ -271,7 +270,6 @@ private function prepareMeta()
271270
'qty' => $qty,
272271
'advanced_inventory_button' => $advancedInventoryButton,
273272
];
274-
275273
$this->meta = $this->arrayManager->merge(
276274
$fieldsetPath . '/children',
277275
$this->meta,

app/code/Magento/Cms/Test/Unit/Ui/Component/Listing/Column/BlockActionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Magento\Framework\UrlInterface;
1212
use Magento\Framework\View\Element\UiComponent\ContextInterface;
1313
use Magento\Framework\View\Element\UiComponent\Processor;
14-
use PHPUnit_Framework_MockObject_MockObject as MockObject;
14+
use PHPUnit\Framework\MockObject\MockObject;
1515

1616
/**
1717
* BlockActionsTest contains unit tests for \Magento\Cms\Ui\Component\Listing\Column\BlockActions class.

app/code/Magento/Cms/Test/Unit/Ui/Component/Listing/Column/PageActionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Magento\Framework\View\Element\UiComponent\ContextInterface;
1616
use Magento\Framework\View\Element\UiComponent\Processor;
1717
use PHPUnit\Framework\TestCase;
18-
use PHPUnit_Framework_MockObject_MockObject as MockObject;
18+
use PHPUnit\Framework\MockObject\MockObject;
1919

2020
/**
2121
* Test for Magento\Cms\Ui\Component\Listing\Column\PageActions class.

app/code/Magento/Config/Test/Unit/Model/Config/Source/Email/TemplateTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
namespace Magento\Config\Test\Unit\Model\Config\Source\Email;
88

9+
use PHPUnit\Framework\MockObject\MockObject;
10+
911
/**
1012
* Test class for Template.
1113
*/
@@ -17,12 +19,12 @@ class TemplateTest extends \PHPUnit\Framework\TestCase
1719
protected $_model;
1820

1921
/**
20-
* @var \Magento\Framework\Registry|\PHPUnit_Framework_MockObject_MockObject
22+
* @var \Magento\Framework\Registry|MockObject
2123
*/
2224
protected $_coreRegistry;
2325

2426
/**
25-
* @var \Magento\Email\Model\Template\Config|\PHPUnit_Framework_MockObject_MockObject
27+
* @var \Magento\Email\Model\Template\Config|MockObject
2628
*/
2729
protected $_emailConfig;
2830

app/code/Magento/Customer/Test/Unit/Model/Customer/DataProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
use Magento\Framework\View\Element\UiComponent\ContextInterface;
2727
use Magento\Ui\Component\Form\Field;
2828
use Magento\Ui\DataProvider\EavValidationRules;
29-
use PHPUnit_Framework_MockObject_MockObject as MockObject;
29+
use PHPUnit\Framework\MockObject\MockObject;
3030

3131
/**
3232
* Unit tests for \Magento\Customer\Model\Customer\DataProvider class.

app/code/Magento/Customer/Test/Unit/Ui/Component/ColumnFactoryTest.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,29 @@
66
namespace Magento\Customer\Test\Unit\Ui\Component;
77

88
use Magento\Customer\Ui\Component\ColumnFactory;
9+
use PHPUnit\Framework\MockObject\MockObject;
910

1011
/**
1112
* Test ColumnFactory Class
1213
*/
1314
class ColumnFactoryTest extends \PHPUnit\Framework\TestCase
1415
{
15-
/** @var \Magento\Customer\Api\Data\OptionInterface|\PHPUnit_Framework_MockObject_MockObject */
16+
/** @var \Magento\Customer\Api\Data\OptionInterface|MockObject */
1617
protected $attributeOption;
1718

18-
/** @var \Magento\Framework\View\Element\UiComponent\ContextInterface|\PHPUnit_Framework_MockObject_MockObject */
19+
/** @var \Magento\Framework\View\Element\UiComponent\ContextInterface|MockObject */
1920
protected $context;
2021

21-
/** @var \Magento\Framework\View\Element\UiComponentFactory|\PHPUnit_Framework_MockObject_MockObject */
22+
/** @var \Magento\Framework\View\Element\UiComponentFactory|MockObject */
2223
protected $componentFactory;
2324

24-
/** @var \Magento\Customer\Api\Data\AttributeMetadataInterface|\PHPUnit_Framework_MockObject_MockObject */
25+
/** @var \Magento\Customer\Api\Data\AttributeMetadataInterface|MockObject */
2526
protected $attributeMetadata;
2627

27-
/** @var \Magento\Ui\Component\Listing\Columns\ColumnInterface|\PHPUnit_Framework_MockObject_MockObject */
28+
/** @var \Magento\Ui\Component\Listing\Columns\ColumnInterface|MockObject */
2829
protected $column;
2930

30-
/** @var \Magento\Customer\Ui\Component\Listing\Column\InlineEditUpdater|\PHPUnit_Framework_MockObject_MockObject */
31+
/** @var \Magento\Customer\Ui\Component\Listing\Column\InlineEditUpdater|MockObject */
3132
protected $inlineEditUpdater;
3233

3334
/** @var ColumnFactory */

app/code/Magento/Customer/Test/Unit/Ui/Component/FilterFactoryTest.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,26 @@
66
namespace Magento\Customer\Test\Unit\Ui\Component;
77

88
use Magento\Customer\Ui\Component\FilterFactory;
9+
use PHPUnit\Framework\MockObject\MockObject;
910

1011
/**
1112
* Test FilterFactory Class
1213
*/
1314
class FilterFactoryTest extends \PHPUnit\Framework\TestCase
1415
{
15-
/** @var \Magento\Customer\Api\Data\OptionInterface|\PHPUnit_Framework_MockObject_MockObject */
16+
/** @var \Magento\Customer\Api\Data\OptionInterface|MockObject */
1617
protected $attributeOption;
1718

18-
/** @var \Magento\Framework\View\Element\UiComponent\ContextInterface|\PHPUnit_Framework_MockObject_MockObject */
19+
/** @var \Magento\Framework\View\Element\UiComponent\ContextInterface|MockObject */
1920
protected $context;
2021

21-
/** @var \Magento\Framework\View\Element\UiComponentFactory|\PHPUnit_Framework_MockObject_MockObject */
22+
/** @var \Magento\Framework\View\Element\UiComponentFactory|MockObject */
2223
protected $componentFactory;
2324

24-
/** @var \Magento\Customer\Api\Data\AttributeMetadataInterface|\PHPUnit_Framework_MockObject_MockObject */
25+
/** @var \Magento\Customer\Api\Data\AttributeMetadataInterface|MockObject */
2526
protected $attributeMetadata;
2627

27-
/** @var \Magento\Ui\Component\Listing\Columns\ColumnInterface|\PHPUnit_Framework_MockObject_MockObject */
28+
/** @var \Magento\Ui\Component\Listing\Columns\ColumnInterface|MockObject */
2829
protected $filter;
2930

3031
/** @var FilterFactory */

app/code/Magento/Customer/Test/Unit/Ui/Component/Listing/Column/ActionsTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
namespace Magento\Customer\Test\Unit\Ui\Component\Listing\Column;
77

88
use Magento\Customer\Ui\Component\Listing\Column\Actions;
9+
use PHPUnit\Framework\MockObject\MockObject;
910

1011
/**
1112
* Class Actions test for Listing Colummn
@@ -15,13 +16,13 @@ class ActionsTest extends \PHPUnit\Framework\TestCase
1516
/** @var Actions */
1617
protected $component;
1718

18-
/** @var \Magento\Framework\View\Element\UiComponent\ContextInterface|\PHPUnit_Framework_MockObject_MockObject */
19+
/** @var \Magento\Framework\View\Element\UiComponent\ContextInterface|MockObject */
1920
protected $context;
2021

21-
/** @var \Magento\Framework\View\Element\UiComponentFactory|\PHPUnit_Framework_MockObject_MockObject */
22+
/** @var \Magento\Framework\View\Element\UiComponentFactory|MockObject */
2223
protected $uiComponentFactory;
2324

24-
/** @var \Magento\Framework\UrlInterface|\PHPUnit_Framework_MockObject_MockObject */
25+
/** @var \Magento\Framework\UrlInterface|MockObject */
2526
protected $urlBuilder;
2627

2728
public function setup()

app/code/Magento/Sales/Test/Unit/Ui/Component/Listing/Column/Status/OptionsTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
99
use Magento\Sales\Model\ResourceModel\Order\Status\CollectionFactory;
1010
use Magento\Sales\Ui\Component\Listing\Column\Status\Options;
11+
use PHPUnit\Framework\MockObject\MockObject;
1112

1213
/**
1314
* Class Options test for Listing Column Status
@@ -20,7 +21,7 @@ class OptionsTest extends \PHPUnit\Framework\TestCase
2021
protected $model;
2122

2223
/**
23-
* @var CollectionFactory|\PHPUnit_Framework_MockObject_MockObject
24+
* @var CollectionFactory|MockObject
2425
*/
2526
protected $collectionFactoryMock;
2627

0 commit comments

Comments
 (0)