diff --git a/tests/phpunit/src/TestBase.php b/tests/phpunit/src/TestBase.php index 138e9df09..f8c5956f2 100644 --- a/tests/phpunit/src/TestBase.php +++ b/tests/phpunit/src/TestBase.php @@ -42,7 +42,6 @@ use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Filesystem\Path; use Symfony\Component\Process\Process; -use Symfony\Component\Yaml\Yaml; /** * @property \Acquia\Cli\Command\CommandBase $command @@ -362,7 +361,7 @@ protected function getCloudApiSpec(): mixed { if ($isCommandCacheValid && $apiSpecCacheItem->isHit()) { return $apiSpecCacheItem->get(); } - $apiSpec = Yaml::parseFile($acquiaCloudSpecFile); + $apiSpec = json_decode(file_get_contents($acquiaCloudSpecFile), TRUE); $this->saveApiSpecCacheItems($cache, $acquiaCloudSpecFileChecksum, $apiSpecCacheItem, $apiSpec); return $apiSpec;