Skip to content

Commit cad219a

Browse files
authored
Fix unit tests
1 parent 0095402 commit cad219a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Setup/Test/Unit/Patch/PatchApplierTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public function testApplyDataPatchForAlias($moduleName, $dataPatches, $moduleVer
218218
);
219219

220220
$patch1 = $this->getMockForAbstractClass(DataPatchInterface::class);
221-
$patch1->expects($this->once())->method('getAliases')->willReturn(['PatchAlias']);
221+
$patch1->expects($this->any())->method('getAliases')->willReturn(['PatchAlias']);
222222
$patchClass = get_class($patch1);
223223

224224
$patchRegistryMock = $this->createAggregateIteratorMock(PatchRegistry::class, [$patchClass], ['registerPatch']);
@@ -545,7 +545,7 @@ public function testSchemaPatchApplyForPatchAlias($moduleName, $schemaPatches, $
545545
);
546546

547547
$patch1 = $this->getMockForAbstractClass(PatchInterface::class);
548-
$patch1->expects($this->once())->method('getAliases')->willReturn(['PatchAlias']);
548+
$patch1->expects($this->any())->method('getAliases')->willReturn(['PatchAlias']);
549549
$patchClass = get_class($patch1);
550550

551551
$patchRegistryMock = $this->createAggregateIteratorMock(PatchRegistry::class, [$patchClass], ['registerPatch']);

0 commit comments

Comments
 (0)