From 05aecfbe8b2ebb04d7462d2203f7b0e912119f68 Mon Sep 17 00:00:00 2001 From: Abdullahi Temidayo Jimoh <46778885+Jimlah@users.noreply.github.com> Date: Wed, 12 Oct 2022 13:22:28 +0100 Subject: [PATCH] Test for About command (#11078) --- .../Test/Command/AboutCommandTest.php | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/Composer/Test/Command/AboutCommandTest.php diff --git a/tests/Composer/Test/Command/AboutCommandTest.php b/tests/Composer/Test/Command/AboutCommandTest.php new file mode 100644 index 000000000..7701fbfd3 --- /dev/null +++ b/tests/Composer/Test/Command/AboutCommandTest.php @@ -0,0 +1,21 @@ +getApplicationTester(); + $this->assertSame(0, $appTester->run(['command' => 'about'])); + $this->assertStringContainsString("Composer - Dependency Manager for PHP - version $composerVersion", $appTester->getDisplay()); + + $this->assertStringContainsString("Composer is a dependency manager tracking local dependencies of your projects and libraries.", $appTester->getDisplay()); + $this->assertStringContainsString("See https://getcomposer.org/ for more information.", $appTester->getDisplay()); + } +}