From 7c3a93ba9e3c2446fd59fe1f6767295bfc363548 Mon Sep 17 00:00:00 2001 From: Alexis Guyomar Date: Wed, 6 Nov 2024 09:35:00 +0100 Subject: [PATCH] fix: cs fixer and tests --- classes/Commands/UpdateCommand.php | 2 +- classes/Task/Update/UpdateComplete.php | 1 - .../unit/Parameters/LocalChannelConfigurationValidatorTest.php | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Commands/UpdateCommand.php b/classes/Commands/UpdateCommand.php index 2ceb20d1f..2d838e1b6 100644 --- a/classes/Commands/UpdateCommand.php +++ b/classes/Commands/UpdateCommand.php @@ -94,7 +94,7 @@ protected function execute(InputInterface $input, OutputInterface $output): ?int $controller->setOptions([ 'data' => $input->getOption('data'), 'action' => $input->getOption('action'), - UpgradeConfiguration::CHANNEL => $input->getOption(UpgradeConfiguration::CHANNEL), + UpgradeConfiguration::CHANNEL => $input->getOption('channel'), ]); $controller->init(); $exitCode = $controller->run(); diff --git a/classes/Task/Update/UpdateComplete.php b/classes/Task/Update/UpdateComplete.php index 10064d169..a25888729 100644 --- a/classes/Task/Update/UpdateComplete.php +++ b/classes/Task/Update/UpdateComplete.php @@ -29,7 +29,6 @@ use Exception; use PrestaShop\Module\AutoUpgrade\Analytics; -use PrestaShop\Module\AutoUpgrade\Parameters\UpgradeConfiguration; use PrestaShop\Module\AutoUpgrade\Task\AbstractTask; use PrestaShop\Module\AutoUpgrade\Task\ExitCode; use PrestaShop\Module\AutoUpgrade\Task\TaskName; diff --git a/tests/unit/Parameters/LocalChannelConfigurationValidatorTest.php b/tests/unit/Parameters/LocalChannelConfigurationValidatorTest.php index 66430d779..7a927a632 100644 --- a/tests/unit/Parameters/LocalChannelConfigurationValidatorTest.php +++ b/tests/unit/Parameters/LocalChannelConfigurationValidatorTest.php @@ -2,6 +2,7 @@ use PHPUnit\Framework\TestCase; use PrestaShop\Module\AutoUpgrade\Parameters\LocalChannelConfigurationValidator; +use PrestaShop\Module\AutoUpgrade\Parameters\UpgradeConfiguration; use PrestaShop\Module\AutoUpgrade\UpgradeContainer; class LocalChannelConfigurationValidatorTest extends TestCase