File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
dev/tests/api-functional/framework Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,13 @@ public function run()
2525
2626 /**
2727 * {@inheritdoc}
28- * @SuppressWarnings(PHPMD.UnusedFormalParameter)
2928 */
3029 public function install ($ cleanup )
3130 {
31+ if ($ cleanup ) {
32+ $ this ->cleanup ();
33+ }
34+
3235 $ installOptions = $ this ->getInstallConfig ();
3336
3437 /* Install application */
Original file line number Diff line number Diff line change 5858 );
5959
6060 if (defined ('TESTS_MAGENTO_INSTALLATION ' ) && TESTS_MAGENTO_INSTALLATION === 'enabled ' ) {
61- if (defined ('TESTS_CLEANUP ' ) && TESTS_CLEANUP === 'enabled ' ) {
62- $ application ->cleanup ();
63- }
64- $ application ->install ();
61+ $ cleanup = (defined ('TESTS_CLEANUP ' ) && TESTS_CLEANUP === 'enabled ' );
62+ $ application ->install ($ cleanup );
6563 }
6664
6765 $ bootstrap = new \Magento \TestFramework \Bootstrap (
You can’t perform that action at this time.
0 commit comments