Skip to content

Commit 8777a5c

Browse files
committed
test has been updated
1 parent 2bf1f10 commit 8777a5c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/code/Magento/MessageQueue/Test/Unit/Console/PoisonPillApplyDuringSetupUpgradeTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ protected function setUp(): void
115115
$this->registry = $objectManager->getObject(Registry::class);
116116
$this->moduleListInterface = $this->createMock(ModuleListInterface::class);
117117
$this->moduleListInterface->method('getNames')->willReturn(['Magento_MessageQueue']);
118+
$this->moduleListInterface->method('getOne')->with('Magento_MessageQueue')->willReturn(['setup_version'=>'']);
118119
$this->declarationInstaller = $this->createMock(DeclarationInstaller::class);
119120
$this->declarationInstaller->method('installSchema')->willReturn(true);
120121
$this->schemaListener = $this->createMock(SchemaListener::class);
@@ -123,7 +124,6 @@ protected function setUp(): void
123124
$this->patchApplierFactory = $this->createMock(PatchApplierFactory::class);
124125
$this->patchApplier = $this->createMock(PatchApplier::class);
125126
$this->patchApplier->method('applySchemaPatch')->willReturn(true);
126-
127127
$this->patchApplierFactory->method('create')->willReturn($this->patchApplier);
128128
$this->objectManagerProvider = $this->createMock(ObjectManagerProvider::class);
129129
$this->objectManagerMock = $this->createMock(\Magento\Framework\ObjectManager\ObjectManager::class);
@@ -174,10 +174,8 @@ protected function setUp(): void
174174
'cache_tag',
175175
'flag'
176176
);
177-
178177
$this->setupFactory = $this->createMock(SetupFactory::class);
179178
$this->setupFactory->method('create')->willReturn($this->schemaSetupInterface);
180-
181179
$this->installer = $objectManager->getObject(
182180
Installer::class,
183181
[

0 commit comments

Comments
 (0)