From de438400d320873c541da84d1a7dfbd49be2840d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sat, 21 Oct 2023 09:37:40 +0200 Subject: [PATCH] test: Fix the tests --- .../Command/Composer/ComposerCheckVersion.php | 2 +- .../Command/Composer/ComposerVendorDir.php | 2 +- tests/Console/ApplicationTest.php | 27 ++++++++++--------- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/Console/Command/Composer/ComposerCheckVersion.php b/src/Console/Command/Composer/ComposerCheckVersion.php index 1bc88ade7..64560457e 100644 --- a/src/Console/Command/Composer/ComposerCheckVersion.php +++ b/src/Console/Command/Composer/ComposerCheckVersion.php @@ -30,7 +30,7 @@ public function getConfiguration(): Configuration return new Configuration( 'composer:check-version', - '🎵 Checks if the Composer executable used is compatible with Box', + 'Checks if the Composer executable used is compatible with Box', <<<'HELP' The %command.name% command will look for the Composer binary (in the system if not configured in the configuration file) and check if its version is compatible with Box. diff --git a/src/Console/Command/Composer/ComposerVendorDir.php b/src/Console/Command/Composer/ComposerVendorDir.php index 5b54476e7..65d77e209 100644 --- a/src/Console/Command/Composer/ComposerVendorDir.php +++ b/src/Console/Command/Composer/ComposerVendorDir.php @@ -30,7 +30,7 @@ public function getConfiguration(): Configuration return new Configuration( 'composer:vendor-dir', - '🎵 Shows the Composer vendor-dir configured', + 'Shows the Composer vendor-dir configured', <<<'HELP' The %command.name% command will look for the Composer binary (in the system if not configured in the configuration file) and print the vendor-dir found. diff --git a/tests/Console/ApplicationTest.php b/tests/Console/ApplicationTest.php index 8cc7e0a44..872acf5c6 100644 --- a/tests/Console/ApplicationTest.php +++ b/tests/Console/ApplicationTest.php @@ -116,18 +116,21 @@ public function test_get_helper_menu(): void -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug Available commands: - compile 🔨 Compiles an application into a PHAR - completion Dump the shell completion script - diff 🕵 Displays the differences between all of the files in two PHARs - docker 🐳 Generates a Dockerfile for the given PHAR - extract 🚚 Extracts a given PHAR into a directory - help Display help for a command - info 🔍 Displays information about the PHAR extension or file - list List commands - namespace Prints the first part of the command namespace - process ⚡ Applies the registered compactors and replacement values on a file - validate ⚙ Validates the configuration file - verify 🔐️ Verifies the PHAR signature + compile 🔨 Compiles an application into a PHAR + completion Dump the shell completion script + diff 🕵 Displays the differences between all of the files in two PHARs + docker 🐳 Generates a Dockerfile for the given PHAR + extract 🚚 Extracts a given PHAR into a directory + help Display help for a command + info 🔍 Displays information about the PHAR extension or file + list List commands + namespace Prints the first part of the command namespace + process ⚡ Applies the registered compactors and replacement values on a file + validate ⚙ Validates the configuration file + verify 🔐️ Verifies the PHAR signature + composer + composer:check-version Checks if the Composer executable used is compatible with Box + composer:vendor-dir Shows the Composer vendor-dir configured EOF;