private function LocaleCompareTest::setTranslationsDirectory

Set the value of the default translations directory.

Parameters

string $path: Path of the translations directory relative to the drupal installation directory.

1 call to LocaleCompareTest::setTranslationsDirectory()
LocaleCompareTest::testCompareCheckLocal in drupal/core/modules/locale/lib/Drupal/locale/Tests/LocaleCompareTest.php
Checks if local or remote translation sources are detected.

File

drupal/core/modules/locale/lib/Drupal/locale/Tests/LocaleCompareTest.php, line 60
Definition of Drupal\locale\Tests\LocaleCompareTest.

Class

LocaleCompareTest
Tests for comparing status of existing project translations with available translations.

Namespace

Drupal\locale\Tests

Code

private function setTranslationsDirectory($path) {
  $this->tranlations_directory = $path;
  file_prepare_directory($path, FILE_CREATE_DIRECTORY);
  variable_set('locale_translate_file_directory', $path);
}