File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
dev/tests/integration/framework
tests/unit/testsuite/Magento/Test Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -525,7 +525,7 @@ public function cleanup()
525
525
* @see \Magento\Setup\Mvc\Bootstrap\InitParamListener::BOOTSTRAP_PARAM
526
526
*/
527
527
$ this ->_shell ->execute (
528
- PHP_BINARY . ' -f %s setup:uninstall -vvv -n --magento-init-params=%s ' ,
528
+ PHP_BINARY . ' -f %s setup:uninstall --no-interaction - vvv -n --magento-init-params=%s ' ,
529
529
[BP . '/bin/magento ' , $ this ->getInitParamsQuery ()]
530
530
);
531
531
}
@@ -551,6 +551,7 @@ public function install($cleanup)
551
551
$ this ->copyGlobalConfigFile ();
552
552
553
553
$ installParams = $ this ->getInstallCliParams ();
554
+ $ installParams ['--no-interaction ' ] = true ;
554
555
555
556
// performance optimization: restore DB from last good dump to make installation on top of it (much faster)
556
557
// do not restore from the database if the cleanup option is set to ensure we have a clean DB to test on
@@ -609,7 +610,9 @@ protected function runPostInstallCommands()
609
610
$ command = $ postInstallSetupCommand ['command ' ];
610
611
$ argumentsAndOptions = $ postInstallSetupCommand ['config ' ];
611
612
612
- $ argumentsAndOptionsPlaceholders = [];
613
+ $ argumentsAndOptionsPlaceholders = [
614
+ '--no-interaction '
615
+ ];
613
616
614
617
foreach (array_keys ($ argumentsAndOptions ) as $ key ) {
615
618
$ isArgument = is_numeric ($ key );
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ public function installDataProvider()
183
183
$ installShellCommandExpectation = [
184
184
PHP_BINARY . ' -f %s setup:install -vvv ' .
185
185
'--db-host=%s --db-user=%s --db-password=%s --db-name=%s --db-prefix=%s ' .
186
- '--use-secure=%s --use-secure-admin=%s --magento-init-params=%s ' ,
186
+ '--use-secure=%s --use-secure-admin=%s --magento-init-params=%s --no-interaction ' ,
187
187
[
188
188
BP . '/bin/magento ' ,
189
189
'/tmp/mysql.sock ' ,
@@ -194,6 +194,7 @@ public function installDataProvider()
194
194
'0 ' ,
195
195
'0 ' ,
196
196
$ this ->getInitParamsQuery (sys_get_temp_dir ()),
197
+ true
197
198
]
198
199
];
199
200
@@ -213,7 +214,7 @@ public function installDataProvider()
213
214
[
214
215
$ installShellCommandExpectation ,
215
216
[
216
- PHP_BINARY . ' -f %s %s -vvv ' .
217
+ PHP_BINARY . ' -f %s %s -vvv --no-interaction ' .
217
218
'--host=%s --dbname=%s --username=%s --password=%s --magento-init-params=%s ' ,
218
219
[
219
220
BP . '/bin/magento ' ,
@@ -234,7 +235,7 @@ public function installDataProvider()
234
235
[
235
236
$ installShellCommandExpectation ,
236
237
[
237
- PHP_BINARY . ' -f %s %s -vvv %s %s --option1=%s -option2=%s --magento-init-params=%s ' ,
238
+ PHP_BINARY . ' -f %s %s -vvv --no-interaction %s %s --option1=%s -option2=%s --magento-init-params=%s ' , // phpcs:ignore
238
239
[
239
240
BP . '/bin/magento ' ,
240
241
'fake:command ' ,
You can’t perform that action at this time.
0 commit comments