public function LingotekAppendTypeToTitle8209Test::testAppendTypeToTitle in Lingotek Translation 8.2
Tests that the setting to append content type is set to TRUE after updates.
File
- tests/
src/ Functional/ Update/ LingotekAppendTypeToTitle8209Test.php, line 26
Class
- LingotekAppendTypeToTitle8209Test
- Tests the upgrade path after changing default behavior of appending type to document name in TMS.
Namespace
Drupal\Tests\lingotek\Functional\UpdateCode
public function testAppendTypeToTitle() {
/** @var \Drupal\lingotek\LingotekConfigurationServiceInterface $lingotek_config */
$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'));
}