From 3dc4dcff7f4cc4ea5d58433f4f95a50fd9b9bebc Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Thu, 16 May 2024 16:55:42 -0700 Subject: [PATCH] fix inputs --- tests/phpunit/src/Commands/CommandBaseTest.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/src/Commands/CommandBaseTest.php b/tests/phpunit/src/Commands/CommandBaseTest.php index 0f78deada..45204f7f2 100644 --- a/tests/phpunit/src/Commands/CommandBaseTest.php +++ b/tests/phpunit/src/Commands/CommandBaseTest.php @@ -6,6 +6,7 @@ use Acquia\Cli\Command\App\LinkCommand; use Acquia\Cli\Command\CommandBase; +use Acquia\Cli\Command\Ide\IdeListCommand; use Acquia\Cli\Exception\AcquiaCliException; use Acquia\Cli\Tests\CommandTestBase; @@ -35,10 +36,15 @@ public function testUnauthenticatedFailure(): void { } public function testCloudAppFromLocalConfig(): void { + $this->command = $this->injectCommand(IdeListCommand::class); $this->mockRequest('getApplicationByUuid', 'a47ac10b-58cc-4372-a567-0e02b2c3d470'); $this->mockRequest('getApplicationIdes', 'a47ac10b-58cc-4372-a567-0e02b2c3d470'); $this->createMockAcliConfigFile('a47ac10b-58cc-4372-a567-0e02b2c3d470'); - $this->executeCommand(); + $inputs = [ + // Would you like to share anonymous performance usage and data? + 'n', + ]; + $this->executeCommand([], $inputs); }