File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
app/code/Magento/MessageQueue/Test/Unit/Console Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff 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 [
You can’t perform that action at this time.
0 commit comments