ProjectVersionClientMock.php in Acquia Content Hub 8.2
File
tests/modules/acquia_contenthub_server_test/src/Client/ProjectVersionClientMock.php
View source
<?php
namespace Drupal\acquia_contenthub_server_test\Client;
use Drupal\acquia_contenthub\Client\ProjectVersionClient;
class ProjectVersionClientMock extends ProjectVersionClient {
public function getContentHubReleases() : array {
return [
'latest' => '8.x-2.25',
];
}
public function getDrupalReleases(string $drupal_version) : array {
return [
'also_available' => '9.2.1',
'latest' => '8.9.16',
];
}
}