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); }