You are here

public function LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest::testUpgrade in Lingotek Translation 3.3.x

Same name and namespace in other branches
  1. 4.0.x tests/src/Functional/Update/LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest::testUpgrade()
  2. 3.2.x tests/src/Functional/Update/LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest::testUpgrade()
  3. 3.4.x tests/src/Functional/Update/LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest::testUpgrade()
  4. 3.5.x tests/src/Functional/Update/LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest::testUpgrade()
  5. 3.6.x tests/src/Functional/Update/LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest::testUpgrade()
  6. 3.7.x tests/src/Functional/Update/LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest::testUpgrade()
  7. 3.8.x tests/src/Functional/Update/LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest::testUpgrade()

Tests the upgrade sets the value for the append_type_to_title preference.

File

tests/src/Functional/Update/LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest.php, line 42

Class

LingotekUpgrade9000AppendTypeToTitleBooleanConversionTest
Tests the upgrade path for updating append_type_to_title preference.

Namespace

Drupal\Tests\lingotek\Functional\Update

Code

public function testUpgrade() {
  $this
    ->assertSame('global_setting', $this->lingotekConfiguration
    ->getPreference('append_type_to_title'));
  $this
    ->runUpdates();
  $this
    ->assertSame(TRUE, $this->lingotekConfiguration
    ->getPreference('append_type_to_title'));
}