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
392
392
private function fetchDataMock ($ productFromDb , $ categoryFromDb ): void
393
393
{
394
394
$ selectMock = $ this ->selectMock ;
395
- $ this ->selectMock ->expects ($ this ->any ())->method ('where ' )
395
+ $ this ->selectMock ->expects ($ this ->any ())
396
+ ->method ('where ' )
396
397
->willReturnCallback (function ($ string , $ value ) use ($ selectMock ) {
397
- if ($ string == 'url_rewrite.request_path IN (?) ' )
398
+ if ($ string == 'url_rewrite.request_path IN (?) ' ) {
398
399
$ this ->requestPath = array_shift ($ value );
399
-
400
+ }
400
401
return $ selectMock ;
401
402
});
402
403
$ this ->connectionMock ->expects ($ this ->any ())
403
404
->method ('fetchRow ' )
404
- ->willReturnCallback (function ($ select ) use ($ productFromDb , $ categoryFromDb ) {
405
- switch (true ){
405
+ ->willReturnCallback (function () use ($ productFromDb , $ categoryFromDb ) {
406
+ switch (true ) {
406
407
case $ productFromDb && $ productFromDb ['request_path ' ] == $ this ->requestPath :
407
408
return $ productFromDb ;
408
409
case $ categoryFromDb && $ categoryFromDb ['request_path ' ] == $ this ->requestPath :
You can’t perform that action at this time.
0 commit comments