protected function DrupalVersion::getDrupalVersion in Acquia Content Hub 8.2
Get the current version of Drupal to identify fixtures for tests.
Return value
string The Drupal version string.
3 calls to DrupalVersion::getDrupalVersion()
- ImportExportTestBase::getFixtureExpectations in tests/
src/ Kernel/ ImportExportTestBase.php - Returns fixture expectations.
- ImportExportTestBase::getFixtureString in tests/
src/ Kernel/ ImportExportTestBase.php - Returns fixture content.
- UnserializationTest::createCdfDocumentFromFixture in tests/
src/ Kernel/ UnserializationTest.php - Creates CDF document from fixture.
File
- tests/
src/ Kernel/ Stubs/ DrupalVersion.php, line 18
Class
- DrupalVersion
- Drupal version trait for consistency.
Namespace
Drupal\Tests\acquia_contenthub\Kernel\StubsCode
protected function getDrupalVersion() {
$version = implode('.', explode('.', \Drupal::VERSION, -1));
return "drupal-{$version}";
}