File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
app/code/Magento/CatalogUrlRewrite/Test/Unit/Model/Storage Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -392,17 +392,18 @@ public static function findProductRewriteByRequestPathDataProvider(): array
392392 private function fetchDataMock ($ productFromDb , $ categoryFromDb ): void
393393 {
394394 $ selectMock = $ this ->selectMock ;
395- $ this ->selectMock ->expects ($ this ->any ())->method ('where ' )
395+ $ this ->selectMock ->expects ($ this ->any ())
396+ ->method ('where ' )
396397 ->willReturnCallback (function ($ string , $ value ) use ($ selectMock ) {
397- if ($ string == 'url_rewrite.request_path IN (?) ' )
398+ if ($ string == 'url_rewrite.request_path IN (?) ' ) {
398399 $ this ->requestPath = array_shift ($ value );
399-
400+ }
400401 return $ selectMock ;
401402 });
402403 $ this ->connectionMock ->expects ($ this ->any ())
403404 ->method ('fetchRow ' )
404- ->willReturnCallback (function ($ select ) use ($ productFromDb , $ categoryFromDb ) {
405- switch (true ){
405+ ->willReturnCallback (function () use ($ productFromDb , $ categoryFromDb ) {
406+ switch (true ) {
406407 case $ productFromDb && $ productFromDb ['request_path ' ] == $ this ->requestPath :
407408 return $ productFromDb ;
408409 case $ categoryFromDb && $ categoryFromDb ['request_path ' ] == $ this ->requestPath :
You can’t perform that action at this time.
0 commit comments