You are here

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

Same name and namespace in other branches
  1. 4.0.x tests/src/Functional/Update/LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest::setUp()
  2. 3.2.x tests/src/Functional/Update/LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest::setUp()
  3. 3.3.x tests/src/Functional/Update/LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest::setUp()
  4. 3.5.x tests/src/Functional/Update/LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest::setUp()
  5. 3.6.x tests/src/Functional/Update/LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest::setUp()
  6. 3.7.x tests/src/Functional/Update/LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest::setUp()
  7. 3.8.x tests/src/Functional/Update/LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest::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/LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest.php, line 25

Class

LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest
Tests the upgrade path for updating append_type_to_title preference.

Namespace

Drupal\Tests\lingotek\Functional\Update

Code

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