You are here

public function LingotekUpgrade9402ClearDownloadInterimPreferenceTest::testUpgrade in Lingotek Translation 4.0.x

Same name and namespace in other branches
  1. 3.8.x tests/src/Functional/Update/LingotekUpgrade9402ClearDownloadInterimPreferenceTest.php \Drupal\Tests\lingotek\Functional\Update\LingotekUpgrade9402ClearDownloadInterimPreferenceTest::testUpgrade()

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

File

tests/src/Functional/Update/LingotekUpgrade9402ClearDownloadInterimPreferenceTest.php, line 44

Class

LingotekUpgrade9402ClearDownloadInterimPreferenceTest
Tests the upgrade path for setting enable_download_interim preference.

Namespace

Drupal\Tests\lingotek\Functional\Update

Code

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