From 7cf4b4df3dedfba9c8b6d775d73189c4f2ac24e1 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Thu, 11 Jul 2024 13:31:44 -0700 Subject: [PATCH] kill mutant --- tests/phpunit/src/{Commands => Misc}/ChecklistTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) rename tests/phpunit/src/{Commands => Misc}/ChecklistTest.php (90%) diff --git a/tests/phpunit/src/Commands/ChecklistTest.php b/tests/phpunit/src/Misc/ChecklistTest.php similarity index 90% rename from tests/phpunit/src/Commands/ChecklistTest.php rename to tests/phpunit/src/Misc/ChecklistTest.php index aeebcc207..be0cb7479 100644 --- a/tests/phpunit/src/Commands/ChecklistTest.php +++ b/tests/phpunit/src/Misc/ChecklistTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Acquia\Cli\Tests\Commands; +namespace Acquia\Cli\Tests\Misc; use Acquia\Cli\Output\Checklist; use Acquia\Cli\Tests\TestBase; @@ -28,6 +28,9 @@ public function testSpinner(): void putenv('PHPUNIT_RUNNING=1'); $checklist = new Checklist($this->output); $checklist->addItem('Testing!'); + $items = $checklist->getItems(); + $progressBar = $items[0]['spinner']->getProgressBar(); + $this->assertEquals(' ', $progressBar->getMessage('detail')); // Make the spinner spin with some output. $outputCallback = static function (string $type, string $buffer) use ($checklist): void {