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
115
115
$ this ->registry = $ objectManager ->getObject (Registry::class);
116
116
$ this ->moduleListInterface = $ this ->createMock (ModuleListInterface::class);
117
117
$ this ->moduleListInterface ->method ('getNames ' )->willReturn (['Magento_MessageQueue ' ]);
118
+ $ this ->moduleListInterface ->method ('getOne ' )->with ('Magento_MessageQueue ' )->willReturn (['setup_version ' =>'' ]);
118
119
$ this ->declarationInstaller = $ this ->createMock (DeclarationInstaller::class);
119
120
$ this ->declarationInstaller ->method ('installSchema ' )->willReturn (true );
120
121
$ this ->schemaListener = $ this ->createMock (SchemaListener::class);
@@ -123,7 +124,6 @@ protected function setUp(): void
123
124
$ this ->patchApplierFactory = $ this ->createMock (PatchApplierFactory::class);
124
125
$ this ->patchApplier = $ this ->createMock (PatchApplier::class);
125
126
$ this ->patchApplier ->method ('applySchemaPatch ' )->willReturn (true );
126
-
127
127
$ this ->patchApplierFactory ->method ('create ' )->willReturn ($ this ->patchApplier );
128
128
$ this ->objectManagerProvider = $ this ->createMock (ObjectManagerProvider::class);
129
129
$ this ->objectManagerMock = $ this ->createMock (\Magento \Framework \ObjectManager \ObjectManager::class);
@@ -174,10 +174,8 @@ protected function setUp(): void
174
174
'cache_tag ' ,
175
175
'flag '
176
176
);
177
-
178
177
$ this ->setupFactory = $ this ->createMock (SetupFactory::class);
179
178
$ this ->setupFactory ->method ('create ' )->willReturn ($ this ->schemaSetupInterface );
180
-
181
179
$ this ->installer = $ objectManager ->getObject (
182
180
Installer::class,
183
181
[
You can’t perform that action at this time.
0 commit comments