diff --git a/tests/phpunit/src/Commands/UpdateCommandTest.php b/tests/phpunit/src/Commands/UpdateCommandTest.php deleted file mode 100644 index 11c4d3da9..000000000 --- a/tests/phpunit/src/Commands/UpdateCommandTest.php +++ /dev/null @@ -1,46 +0,0 @@ -injectCommand(HelloWorldCommand::class); - } - - public function testSelfUpdate(): void { - $this->setUpdateClient(); - $this->application->setVersion('2.8.4'); - $this->executeCommand(); - self::assertEquals(0, $this->getStatusCode()); - self::assertStringContainsString('Acquia CLI 2.8.5 is available', $this->getDisplay()); - } - - public function testBadResponseFailsSilently(): void { - $this->setUpdateClient(403); - $this->application->setVersion('2.8.4'); - $this->executeCommand(); - self::assertEquals(0, $this->getStatusCode()); - self::assertStringNotContainsString('Acquia CLI 2.8.5 is available', $this->getDisplay()); - } - - public function testNetworkErrorFailsSilently(): void { - $guzzleClient = $this->prophet->prophesize(Client::class); - $guzzleClient->get('https://api.github.com/repos/acquia/cli/releases') - ->willThrow(RequestException::class); - $this->command->setUpdateClient($guzzleClient->reveal()); - $this->application->setVersion('2.8.4.9999s'); - $this->executeCommand(); - self::assertEquals(0, $this->getStatusCode()); - self::assertStringNotContainsString('Acquia CLI 2.8.5 is available', $this->getDisplay()); - } - -}