13
13
use Magento \Catalog \Model \ResourceModel \Product \Collection as ProductCollection ;
14
14
use Magento \Catalog \Model \ResourceModel \Product \CollectionFactory as ProductCollectionFactory ;
15
15
use Magento \Framework \DataObject ;
16
- use PHPUnit \Framework \MockObject \MockObject ;
17
16
use PHPUnit \Framework \TestCase ;
18
17
19
18
class DuplicateUrlKeyTest extends TestCase
@@ -48,7 +47,6 @@ function ($productData) use ($storeId) {
48
47
49
48
$ collectionsPerStoreId = array_map (
50
49
function ($ productsData ) {
51
- /** @var MockObject $productCollectionMock */
52
50
$ productCollectionMock = $ this ->getMockBuilder (ProductCollection::class)
53
51
->disableOriginalConstructor ()
54
52
->getMock ();
@@ -74,7 +72,6 @@ function ($productsData) {
74
72
$ dataPerStoreId
75
73
);
76
74
77
- /** @var StoresUtil&MockObject */
78
75
$ storesUtilMock = $ this
79
76
->getMockBuilder (StoresUtil::class)
80
77
->disableOriginalConstructor ()
@@ -83,13 +80,11 @@ function ($productsData) {
83
80
->method ('getAllStoreIds ' )
84
81
->willReturn ($ storeIds );
85
82
86
- /** @var Progress&MockObject */
87
83
$ progressMock = $ this
88
84
->getMockBuilder (Progress::class)
89
85
->disableOriginalConstructor ()
90
86
->getMock ();
91
87
92
- /** @var ProductCollectionFactory&MockObject */
93
88
$ productCollectionFactoryMock = $ this
94
89
->getMockBuilder (ProductCollectionFactory::class)
95
90
->disableOriginalConstructor ()
@@ -110,7 +105,6 @@ function ($productsData) {
110
105
->method ('containsValue ' )
111
106
->willReturn (true );
112
107
113
- /** @var AttributeScopeOverriddenValueFactory&MockObject */
114
108
$ attributeScopeOverriddenValueFactoryMock = $ this
115
109
->getMockBuilder (AttributeScopeOverriddenValueFactory::class)
116
110
->disableOriginalConstructor ()
@@ -120,7 +114,6 @@ function ($productsData) {
120
114
->method ('create ' )
121
115
->willReturn ($ attributeScopeOverriddenValueMock );
122
116
123
- /** @var ConfigUtil&MockObject */
124
117
$ configUtilMock = $ this
125
118
->getMockBuilder (ConfigUtil::class)
126
119
->disableOriginalConstructor ()
0 commit comments