From 2607668f98cbbb6bab15134f3e81965505454ea5 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Thu, 16 May 2024 16:58:04 -0700 Subject: [PATCH] a --- tests/phpunit/src/Commands/CommandBaseTest.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/src/Commands/CommandBaseTest.php b/tests/phpunit/src/Commands/CommandBaseTest.php index 45204f7f2..95d72c539 100644 --- a/tests/phpunit/src/Commands/CommandBaseTest.php +++ b/tests/phpunit/src/Commands/CommandBaseTest.php @@ -6,7 +6,6 @@ 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; @@ -36,14 +35,16 @@ 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->clientServiceProphecy->isMachineAuthenticated()->willReturn(FALSE); + $this->removeMockConfigFiles(); + $inputs = [ // Would you like to share anonymous performance usage and data? 'n', ]; + $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); }