@@ -127,9 +127,10 @@ protected function setUp()
127
127
$ this ->stores [2 ] = $ this ->initialiseStore (2 , 2 );
128
128
$ this ->stores [5 ] = $ this ->initialiseStore (5 , 2 );
129
129
130
- $ this ->product = $ this ->initialiseProduct ($ this -> stores [ 0 ], 0 );
130
+ $ this ->product = $ this ->initialiseProduct ();
131
131
132
- $ this ->productCollection = $ this ->createPartialMock (Collection::class,
132
+ $ this ->productCollection = $ this ->createPartialMock (
133
+ Collection::class,
133
134
['getAllAttributeValues ' ]
134
135
);
135
136
@@ -199,11 +200,9 @@ protected function setUp()
199
200
/**
200
201
* Initialise product for test
201
202
*
202
- * @param $store
203
- * @param $storeId
204
203
* @return MockObject
205
204
*/
206
- public function initialiseProduct ($ store , $ storeId )
205
+ public function initialiseProduct ()
207
206
{
208
207
$ product = $ this ->createPartialMock (
209
208
Product::class,
@@ -253,6 +252,7 @@ public function initialiseStore($storeId, $websiteId)
253
252
* Data provider
254
253
*
255
254
* @return array
255
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
256
256
*/
257
257
public function urlKeyDataProvider ()
258
258
{
@@ -477,9 +477,9 @@ public function urlKeyDataProvider()
477
477
* @param int $productInWebsites
478
478
* @param int $expectedReplaceCount
479
479
* @param array $expectedRemoves
480
+ * @throws UrlAlreadyExistsException
480
481
*
481
482
* @dataProvider urlKeyDataProvider
482
- * @throws UrlAlreadyExistsException
483
483
*/
484
484
public function testExecuteUrlKey (
485
485
$ productScope ,
0 commit comments