Skip to content

Commit 6e48007

Browse files
committed
Fixed Static Test Case Failures
1 parent 60daff8 commit 6e48007

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

app/code/Magento/CatalogUrlRewrite/Test/Unit/Model/Storage/DynamicStorageTest.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)