diff --git a/Command/SetupRunCommand.php b/Command/SetupRunCommand.php index 8430f49..eccb196 100644 --- a/Command/SetupRunCommand.php +++ b/Command/SetupRunCommand.php @@ -122,7 +122,9 @@ protected function execute(InputInterface $input, OutputInterface $output) // phpcs:ignore $configLoader = $this->objectManager->get('Magento\Framework\ObjectManager\ConfigLoaderInterface'); $this->objectManager->configure($configLoader->load($area)); - $this->registry->register('isSecureArea', true); + if (!$this->registry->registry('isSecureArea')) { + $this->registry->register('isSecureArea', true); + } try { /* diff --git a/Test/script/travis_before_install.sh b/Test/script/travis_before_install.sh index 6d8c328..f139816 100755 --- a/Test/script/travis_before_install.sh +++ b/Test/script/travis_before_install.sh @@ -17,3 +17,6 @@ mysql -uroot -e ' CREATE DATABASE `magento`; CREATE DATABASE `magento-integration-tests`; ' + +# make sure to use Composer 1, because Magento does not support Composer 2 yet +composer self-update --1