@@ -75,12 +75,8 @@ protected function setUp()
75
75
*/
76
76
public function testMultiStoreLabelView (array $ expectedStoreData , array $ expectedSecondStoreData ): void
77
77
{
78
- $ this ->executeInStoreContext ->execute ([$ this , 'assertProductLabel ' ], [$ expectedStoreData ]);
79
- $ this ->executeInStoreContext ->execute (
80
- [$ this , 'assertProductLabel ' ],
81
- [$ expectedSecondStoreData ],
82
- 'fixturestore '
83
- );
78
+ $ this ->executeInStoreContext ->execute ('default ' , [$ this , 'assertProductLabel ' ], $ expectedStoreData );
79
+ $ this ->executeInStoreContext ->execute ('fixturestore ' , [$ this , 'assertProductLabel ' ], $ expectedSecondStoreData );
84
80
}
85
81
86
82
/**
@@ -142,11 +138,11 @@ public function assertProductLabel($expectedStoreData): void
142
138
public function testMultiStoreOptionsView (array $ expectedProducts , array $ expectedSecondStoreProducts ): void
143
139
{
144
140
$ this ->prepareConfigurableProduct ('configurable ' , 'fixture_second_store ' );
145
- $ this ->executeInStoreContext ->execute ([$ this , 'assertProductConfig ' ], [ $ expectedProducts] );
141
+ $ this ->executeInStoreContext ->execute (' default ' , [$ this , 'assertProductConfig ' ], $ expectedProducts );
146
142
$ this ->executeInStoreContext ->execute (
143
+ 'fixture_second_store ' ,
147
144
[$ this , 'assertProductConfig ' ],
148
- [$ expectedSecondStoreProducts ],
149
- 'fixture_second_store '
145
+ $ expectedSecondStoreProducts
150
146
);
151
147
}
152
148
@@ -190,7 +186,7 @@ private function prepareConfigurableProduct(string $sku, string $storeCode): voi
190
186
$ productToUpdate = $ product ->getTypeInstance ()->getUsedProductCollection ($ product )
191
187
->setPageSize (1 )->getFirstItem ();
192
188
$ this ->assertNotEmpty ($ productToUpdate ->getData (), 'Configurable product does not have a child ' );
193
- $ this ->executeInStoreContext ->execute ([$ this , 'setProductDisabled ' ], [ $ productToUpdate], $ storeCode );
189
+ $ this ->executeInStoreContext ->execute ($ storeCode , [$ this , 'setProductDisabled ' ], $ productToUpdate );
194
190
}
195
191
196
192
/**
0 commit comments