LingotekAppendTypeToTitle8209Test.php in Lingotek Translation 8.2
File
tests/src/Functional/Update/LingotekAppendTypeToTitle8209Test.php
View source
<?php
namespace Drupal\Tests\lingotek\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class LingotekAppendTypeToTitle8209Test extends UpdatePathTestBase {
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../fixtures/update/drupal-8.lingotek.standard.pre8210.php.gz',
];
}
public function testAppendTypeToTitle() {
$lingotek_config = \Drupal::service('lingotek.configuration');
$this
->assertNull($lingotek_config
->getPreference('append_type_to_title'));
$this
->runUpdates();
$this
->assertTrue($lingotek_config
->getPreference('append_type_to_title'));
}
}