File tree Expand file tree Collapse file tree 14 files changed +45
-36
lines changed
CatalogInventory/Ui/DataProvider/Product/Form/Modifier
Catalog/Test/Unit/Ui/Component/Product
Cms/Test/Unit/Ui/Component/Listing/Column
Config/Test/Unit/Model/Config/Source/Email
Sales/Test/Unit/Ui/Component/Listing/Column/Status
Theme/Test/Unit/Ui/Component/Listing/Column
dev/tests/integration/testsuite/Magento/Setup/Console/Command/_files/root/lib/internal/Magento/Framework/Test/Unit/View/Element Expand file tree Collapse file tree 14 files changed +45
-36
lines changed Original file line number Diff line number Diff line change 11
11
use Magento \Framework \AuthorizationInterface ;
12
12
use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
13
13
use Magento \Framework \View \Element \UiComponent \ContextInterface ;
14
+ use PHPUnit \Framework \MockObject \MockObject ;
14
15
15
16
/**
16
17
* MassAction test for Component Product
17
18
*/
18
19
class MassActionTest extends \PHPUnit \Framework \TestCase
19
20
{
20
21
/**
21
- * @var ContextInterface|\PHPUnit_Framework_MockObject_MockObject
22
+ * @var ContextInterface|MockObject
22
23
*/
23
24
private $ contextMock ;
24
25
@@ -28,7 +29,7 @@ class MassActionTest extends \PHPUnit\Framework\TestCase
28
29
private $ objectManager ;
29
30
30
31
/**
31
- * @var AuthorizationInterface|\PHPUnit_Framework_MockObject_MockObject
32
+ * @var AuthorizationInterface|MockObject
32
33
*/
33
34
private $ authorizationMock ;
34
35
Original file line number Diff line number Diff line change @@ -186,7 +186,6 @@ private function prepareMeta()
186
186
187
187
if ($ pathField ) {
188
188
$ fieldsetPath = $ this ->arrayManager ->slicePath ($ pathField , 0 , -4 );
189
-
190
189
$ this ->meta = $ this ->arrayManager ->merge (
191
190
$ pathField . '/arguments/data/config ' ,
192
191
$ this ->meta ,
@@ -271,7 +270,6 @@ private function prepareMeta()
271
270
'qty ' => $ qty ,
272
271
'advanced_inventory_button ' => $ advancedInventoryButton ,
273
272
];
274
-
275
273
$ this ->meta = $ this ->arrayManager ->merge (
276
274
$ fieldsetPath . '/children ' ,
277
275
$ this ->meta ,
Original file line number Diff line number Diff line change 11
11
use Magento \Framework \UrlInterface ;
12
12
use Magento \Framework \View \Element \UiComponent \ContextInterface ;
13
13
use Magento \Framework \View \Element \UiComponent \Processor ;
14
- use PHPUnit_Framework_MockObject_MockObject as MockObject ;
14
+ use PHPUnit \ Framework \ MockObject \ MockObject ;
15
15
16
16
/**
17
17
* BlockActionsTest contains unit tests for \Magento\Cms\Ui\Component\Listing\Column\BlockActions class.
Original file line number Diff line number Diff line change 15
15
use Magento \Framework \View \Element \UiComponent \ContextInterface ;
16
16
use Magento \Framework \View \Element \UiComponent \Processor ;
17
17
use PHPUnit \Framework \TestCase ;
18
- use PHPUnit_Framework_MockObject_MockObject as MockObject ;
18
+ use PHPUnit \ Framework \ MockObject \ MockObject ;
19
19
20
20
/**
21
21
* Test for Magento\Cms\Ui\Component\Listing\Column\PageActions class.
Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \Config \Test \Unit \Model \Config \Source \Email ;
8
8
9
+ use PHPUnit \Framework \MockObject \MockObject ;
10
+
9
11
/**
10
12
* Test class for Template.
11
13
*/
@@ -17,12 +19,12 @@ class TemplateTest extends \PHPUnit\Framework\TestCase
17
19
protected $ _model ;
18
20
19
21
/**
20
- * @var \Magento\Framework\Registry|\PHPUnit_Framework_MockObject_MockObject
22
+ * @var \Magento\Framework\Registry|MockObject
21
23
*/
22
24
protected $ _coreRegistry ;
23
25
24
26
/**
25
- * @var \Magento\Email\Model\Template\Config|\PHPUnit_Framework_MockObject_MockObject
27
+ * @var \Magento\Email\Model\Template\Config|MockObject
26
28
*/
27
29
protected $ _emailConfig ;
28
30
Original file line number Diff line number Diff line change 26
26
use Magento \Framework \View \Element \UiComponent \ContextInterface ;
27
27
use Magento \Ui \Component \Form \Field ;
28
28
use Magento \Ui \DataProvider \EavValidationRules ;
29
- use PHPUnit_Framework_MockObject_MockObject as MockObject ;
29
+ use PHPUnit \ Framework \ MockObject \ MockObject ;
30
30
31
31
/**
32
32
* Unit tests for \Magento\Customer\Model\Customer\DataProvider class.
Original file line number Diff line number Diff line change 6
6
namespace Magento \Customer \Test \Unit \Ui \Component ;
7
7
8
8
use Magento \Customer \Ui \Component \ColumnFactory ;
9
+ use PHPUnit \Framework \MockObject \MockObject ;
9
10
10
11
/**
11
12
* Test ColumnFactory Class
12
13
*/
13
14
class ColumnFactoryTest extends \PHPUnit \Framework \TestCase
14
15
{
15
- /** @var \Magento\Customer\Api\Data\OptionInterface|\PHPUnit_Framework_MockObject_MockObject */
16
+ /** @var \Magento\Customer\Api\Data\OptionInterface|MockObject */
16
17
protected $ attributeOption ;
17
18
18
- /** @var \Magento\Framework\View\Element\UiComponent\ContextInterface|\PHPUnit_Framework_MockObject_MockObject */
19
+ /** @var \Magento\Framework\View\Element\UiComponent\ContextInterface|MockObject */
19
20
protected $ context ;
20
21
21
- /** @var \Magento\Framework\View\Element\UiComponentFactory|\PHPUnit_Framework_MockObject_MockObject */
22
+ /** @var \Magento\Framework\View\Element\UiComponentFactory|MockObject */
22
23
protected $ componentFactory ;
23
24
24
- /** @var \Magento\Customer\Api\Data\AttributeMetadataInterface|\PHPUnit_Framework_MockObject_MockObject */
25
+ /** @var \Magento\Customer\Api\Data\AttributeMetadataInterface|MockObject */
25
26
protected $ attributeMetadata ;
26
27
27
- /** @var \Magento\Ui\Component\Listing\Columns\ColumnInterface|\PHPUnit_Framework_MockObject_MockObject */
28
+ /** @var \Magento\Ui\Component\Listing\Columns\ColumnInterface|MockObject */
28
29
protected $ column ;
29
30
30
- /** @var \Magento\Customer\Ui\Component\Listing\Column\InlineEditUpdater|\PHPUnit_Framework_MockObject_MockObject */
31
+ /** @var \Magento\Customer\Ui\Component\Listing\Column\InlineEditUpdater|MockObject */
31
32
protected $ inlineEditUpdater ;
32
33
33
34
/** @var ColumnFactory */
Original file line number Diff line number Diff line change 6
6
namespace Magento \Customer \Test \Unit \Ui \Component ;
7
7
8
8
use Magento \Customer \Ui \Component \FilterFactory ;
9
+ use PHPUnit \Framework \MockObject \MockObject ;
9
10
10
11
/**
11
12
* Test FilterFactory Class
12
13
*/
13
14
class FilterFactoryTest extends \PHPUnit \Framework \TestCase
14
15
{
15
- /** @var \Magento\Customer\Api\Data\OptionInterface|\PHPUnit_Framework_MockObject_MockObject */
16
+ /** @var \Magento\Customer\Api\Data\OptionInterface|MockObject */
16
17
protected $ attributeOption ;
17
18
18
- /** @var \Magento\Framework\View\Element\UiComponent\ContextInterface|\PHPUnit_Framework_MockObject_MockObject */
19
+ /** @var \Magento\Framework\View\Element\UiComponent\ContextInterface|MockObject */
19
20
protected $ context ;
20
21
21
- /** @var \Magento\Framework\View\Element\UiComponentFactory|\PHPUnit_Framework_MockObject_MockObject */
22
+ /** @var \Magento\Framework\View\Element\UiComponentFactory|MockObject */
22
23
protected $ componentFactory ;
23
24
24
- /** @var \Magento\Customer\Api\Data\AttributeMetadataInterface|\PHPUnit_Framework_MockObject_MockObject */
25
+ /** @var \Magento\Customer\Api\Data\AttributeMetadataInterface|MockObject */
25
26
protected $ attributeMetadata ;
26
27
27
- /** @var \Magento\Ui\Component\Listing\Columns\ColumnInterface|\PHPUnit_Framework_MockObject_MockObject */
28
+ /** @var \Magento\Ui\Component\Listing\Columns\ColumnInterface|MockObject */
28
29
protected $ filter ;
29
30
30
31
/** @var FilterFactory */
Original file line number Diff line number Diff line change 6
6
namespace Magento \Customer \Test \Unit \Ui \Component \Listing \Column ;
7
7
8
8
use Magento \Customer \Ui \Component \Listing \Column \Actions ;
9
+ use PHPUnit \Framework \MockObject \MockObject ;
9
10
10
11
/**
11
12
* Class Actions test for Listing Colummn
@@ -15,13 +16,13 @@ class ActionsTest extends \PHPUnit\Framework\TestCase
15
16
/** @var Actions */
16
17
protected $ component ;
17
18
18
- /** @var \Magento\Framework\View\Element\UiComponent\ContextInterface|\PHPUnit_Framework_MockObject_MockObject */
19
+ /** @var \Magento\Framework\View\Element\UiComponent\ContextInterface|MockObject */
19
20
protected $ context ;
20
21
21
- /** @var \Magento\Framework\View\Element\UiComponentFactory|\PHPUnit_Framework_MockObject_MockObject */
22
+ /** @var \Magento\Framework\View\Element\UiComponentFactory|MockObject */
22
23
protected $ uiComponentFactory ;
23
24
24
- /** @var \Magento\Framework\UrlInterface|\PHPUnit_Framework_MockObject_MockObject */
25
+ /** @var \Magento\Framework\UrlInterface|MockObject */
25
26
protected $ urlBuilder ;
26
27
27
28
public function setup ()
Original file line number Diff line number Diff line change 8
8
use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
9
9
use Magento \Sales \Model \ResourceModel \Order \Status \CollectionFactory ;
10
10
use Magento \Sales \Ui \Component \Listing \Column \Status \Options ;
11
+ use PHPUnit \Framework \MockObject \MockObject ;
11
12
12
13
/**
13
14
* Class Options test for Listing Column Status
@@ -20,7 +21,7 @@ class OptionsTest extends \PHPUnit\Framework\TestCase
20
21
protected $ model ;
21
22
22
23
/**
23
- * @var CollectionFactory|\PHPUnit_Framework_MockObject_MockObject
24
+ * @var CollectionFactory|MockObject
24
25
*/
25
26
protected $ collectionFactoryMock ;
26
27
You can’t perform that action at this time.
0 commit comments