You are here

protected function LingotekUpgrade8222EnableDownloadInterimPreferenceTest::setUp in Lingotek Translation 3.4.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/Update/LingotekUpgrade8222EnableDownloadInterimPreferenceTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade8222EnableDownloadInterimPreferenceTest::setUp()
  2. 3.0.x tests/src/Functional/Update/LingotekUpgrade8222EnableDownloadInterimPreferenceTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade8222EnableDownloadInterimPreferenceTest::setUp()
  3. 3.1.x tests/src/Functional/Update/LingotekUpgrade8222EnableDownloadInterimPreferenceTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade8222EnableDownloadInterimPreferenceTest::setUp()
  4. 3.2.x tests/src/Functional/Update/LingotekUpgrade8222EnableDownloadInterimPreferenceTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade8222EnableDownloadInterimPreferenceTest::setUp()
  5. 3.3.x tests/src/Functional/Update/LingotekUpgrade8222EnableDownloadInterimPreferenceTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade8222EnableDownloadInterimPreferenceTest::setUp()
  6. 3.5.x tests/src/Functional/Update/LingotekUpgrade8222EnableDownloadInterimPreferenceTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade8222EnableDownloadInterimPreferenceTest::setUp()
  7. 3.6.x tests/src/Functional/Update/LingotekUpgrade8222EnableDownloadInterimPreferenceTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade8222EnableDownloadInterimPreferenceTest::setUp()
  8. 3.7.x tests/src/Functional/Update/LingotekUpgrade8222EnableDownloadInterimPreferenceTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade8222EnableDownloadInterimPreferenceTest::setUp()

Overrides BrowserTestBase::setUp() for update testing.

The main difference in this method is that rather than performing the installation via the installer, a database is loaded. Additional work is then needed to set various things such as the config directories and the container that would normally be done via the installer.

Overrides UpdatePathTestBase::setUp

File

tests/src/Functional/Update/LingotekUpgrade8222EnableDownloadInterimPreferenceTest.php, line 25

Class

LingotekUpgrade8222EnableDownloadInterimPreferenceTest
Tests the upgrade path for setting enable_download_interim preference.

Namespace

Drupal\Tests\lingotek\Functional\Update

Code

protected function setUp() : void {
  parent::setUp();
  $this->lingotekConfiguration = $this->container
    ->get('lingotek.configuration');
}