LingotekUpgrade8222EnableDownloadInterimPreferenceTest.php in Lingotek Translation 3.2.x
Same filename and directory in other branches
- 8.2 tests/src/Functional/Update/LingotekUpgrade8222EnableDownloadInterimPreferenceTest.php
- 3.0.x tests/src/Functional/Update/LingotekUpgrade8222EnableDownloadInterimPreferenceTest.php
- 3.1.x tests/src/Functional/Update/LingotekUpgrade8222EnableDownloadInterimPreferenceTest.php
- 3.3.x tests/src/Functional/Update/LingotekUpgrade8222EnableDownloadInterimPreferenceTest.php
- 3.4.x tests/src/Functional/Update/LingotekUpgrade8222EnableDownloadInterimPreferenceTest.php
- 3.5.x tests/src/Functional/Update/LingotekUpgrade8222EnableDownloadInterimPreferenceTest.php
- 3.6.x tests/src/Functional/Update/LingotekUpgrade8222EnableDownloadInterimPreferenceTest.php
- 3.7.x tests/src/Functional/Update/LingotekUpgrade8222EnableDownloadInterimPreferenceTest.php
Namespace
Drupal\Tests\lingotek\Functional\UpdateFile
tests/src/Functional/Update/LingotekUpgrade8222EnableDownloadInterimPreferenceTest.phpView source
<?php
namespace Drupal\Tests\lingotek\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
/**
* Tests the upgrade path for setting enable_download_interim preference.
*
* @group lingotek
* @group legacy
*/
class LingotekUpgrade8222EnableDownloadInterimPreferenceTest extends UpdatePathTestBase {
/**
* The Lingotek configuration service.
*
* @var \Drupal\lingotek\LingotekConfigurationServiceInterface
*/
protected $lingotekConfiguration;
/**
* {@inheritdoc}
*/
protected function setUp() : void {
parent::setUp();
$this->lingotekConfiguration = $this->container
->get('lingotek.configuration');
}
/**
* {@inheritdoc}
*/
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../fixtures/update/drupal-88x.lingotek-2x20.standard.php.gz',
];
}
/**
* Tests that the upgrade sets the value for the enable_download_interim
* preference.
*/
public function testUpgrade() {
$this
->assertNull($this->lingotekConfiguration
->getPreference('enable_download_interim'));
$this
->runUpdates();
$this
->assertTrue($this->lingotekConfiguration
->getPreference('enable_download_interim'));
}
}
Classes
Name | Description |
---|---|
LingotekUpgrade8222EnableDownloadInterimPreferenceTest | Tests the upgrade path for setting enable_download_interim preference. |