You are here

public function LingotekUpgrade8222EnableDownloadInterimPreferenceTest::testUpgrade in Lingotek Translation 3.2.x

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

Tests that the upgrade sets the value for the enable_download_interim preference.

File

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

Class

LingotekUpgrade8222EnableDownloadInterimPreferenceTest
Tests the upgrade path for setting enable_download_interim preference.

Namespace

Drupal\Tests\lingotek\Functional\Update

Code

public function testUpgrade() {
  $this
    ->assertNull($this->lingotekConfiguration
    ->getPreference('enable_download_interim'));
  $this
    ->runUpdates();
  $this
    ->assertTrue($this->lingotekConfiguration
    ->getPreference('enable_download_interim'));
}