LingotekSplitDownloadAllPreferenceUpdate8220Test.php in Lingotek Translation 8.2
File
tests/src/Functional/Update/LingotekSplitDownloadAllPreferenceUpdate8220Test.php
View source
<?php
namespace Drupal\Tests\lingotek\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class LingotekSplitDownloadAllPreferenceUpdate8220Test extends UpdatePathTestBase {
protected $lingotekConfiguration;
protected function setUp() {
parent::setUp();
$this->lingotekConfiguration = $this->container
->get('lingotek.configuration');
}
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../fixtures/update/drupal-8.lingotek.standard.pre8217.php.gz',
];
}
public function testUpgrade() {
$this
->assertNull($this->lingotekConfiguration
->getPreference('split_download_all'));
$this
->runUpdates();
$this
->assertFalse($this->lingotekConfiguration
->getPreference('split_download_all'));
}
}