Skip to content

Commit ab23a55

Browse files
committed
MAGETWO-87555: Test coverage for critical logic
- codestyle fixes
1 parent 50b9bb8 commit ab23a55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup/src/Magento/Setup/Model/Patch/PatchApplier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public function applyDataPatch($moduleName = null)
164164
}
165165
if ($dataPatch instanceof NonTransactionableInterface) {
166166
$dataPatch->apply();
167-
$this->patchHistory->fixPatch($dataPatch);
167+
$this->patchHistory->fixPatch(get_class($dataPatch));
168168
} else {
169169
try {
170170
$this->moduleDataSetup->getConnection()->beginTransaction();

setup/src/Magento/Setup/Test/Unit/Model/Patch/PatchApplierTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ public function testNonTransactionablePatch()
366366
$this->connectionMock->expects($this->never())->method('beginTransaction');
367367
$this->connectionMock->expects($this->never())->method('commit');
368368
$this->connectionMock->expects($this->never())->method('rollback');
369-
$this->patchHistoryMock->expects($this->once())->method('fixPatch')->with($patch1);
369+
$this->patchHistoryMock->expects($this->once())->method('fixPatch')->with(get_class($patch1));
370370
$this->objectManagerMock->expects($this->any())->method('create')->willReturnMap(
371371
[
372372
[

0 commit comments

Comments
 (0)