You are here

public function ProjectVersionClientMock::getDrupalReleases in Acquia Content Hub 8.2

Returns latest versions of drupal core from D.O.

Parameters

string $drupal_version: Drupal major version installed on system.

Return value

string[] Array of recommended versions.

Overrides ProjectVersionClient::getDrupalReleases

File

tests/modules/acquia_contenthub_server_test/src/Client/ProjectVersionClientMock.php, line 24

Class

ProjectVersionClientMock
Mocks the ProjectVersionClient service.

Namespace

Drupal\acquia_contenthub_server_test\Client

Code

public function getDrupalReleases(string $drupal_version) : array {
  return [
    'also_available' => '9.2.1',
    'latest' => '8.9.16',
  ];
}