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 {