You are here

protected function ConfigInstallerTestBase::versionTarball in Configuration installer 8

Gets a tarball for the right version of Drupal.

Parameters

$tarball: The tarball filename.

Return value

string The fullpath to the tarball.

8 calls to ConfigInstallerTestBase::versionTarball()
ConfigInstallerEnSecondTest::getTarball in tests/src/Functional/ConfigInstallerEnSecondTest.php
Gets the tarball for testing.
ConfigInstallerFrDirectorySyncTest::getTarball in tests/src/Functional/ConfigInstallerFrDirectorySyncTest.php
Gets the tarball for testing.
ConfigInstallerFrTarballTest::getTarball in tests/src/Functional/ConfigInstallerFrTarballTest.php
Gets the tarball for testing.
ConfigInstallerNestedDependenciesProfileTest::setUpSyncForm in tests/src/Functional/ConfigInstallerNestedDependenciesProfileTest.php
Submit the config_installer_sync_configure_form.
ConfigInstallerNoDependenciesProfileTest::setUpSyncForm in tests/src/Functional/ConfigInstallerNoDependenciesProfileTest.php
Submit the config_installer_sync_configure_form.

... See full list

File

tests/src/Functional/ConfigInstallerTestBase.php, line 143

Class

ConfigInstallerTestBase
Provides functionality for testing the config_installer profile.

Namespace

Drupal\Tests\config_installer\Functional

Code

protected function versionTarball($tarball) {
  include_once \Drupal::root() . '/core/includes/install.core.inc';
  $version = _install_get_version_info(\Drupal::VERSION);
  $versioned_file = dirname(dirname(__DIR__)) . '/Fixtures/' . $version['major'] . '.' . $version['minor'] . '/' . $tarball;
  if (file_exists($versioned_file)) {
    return $versioned_file;
  }
  return dirname(dirname(__DIR__)) . '/Fixtures/' . $tarball;
}