LingotekUpgrade9402ClearDownloadInterimPreferenceTest.php in Lingotek Translation 4.0.x
File
tests/src/Functional/Update/LingotekUpgrade9402ClearDownloadInterimPreferenceTest.php
View source
<?php
namespace Drupal\Tests\lingotek\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class LingotekUpgrade9402ClearDownloadInterimPreferenceTest extends UpdatePathTestBase {
protected $lingotekConfiguration;
protected function setUp() : void {
parent::setUp();
$this->lingotekConfiguration = $this->container
->get('lingotek.configuration');
}
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../fixtures/update/drupal-88x.lingotek-2x20.standard.php.gz',
__DIR__ . '/../../../fixtures/update/9402-set-preference-enable-download-interim.php',
];
}
public function testUpgrade() {
$this
->assertTrue($this->lingotekConfiguration
->getPreference('enable_download_interim'));
$this
->runUpdates();
$this
->assertNull($this->lingotekConfiguration
->getPreference('enable_download_interim'));
}
}