protected function LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle in Lingotek Translation 8.2
Same name and namespace in other branches
- 4.0.x tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
- 3.0.x tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
- 3.1.x tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
- 3.2.x tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
- 3.3.x tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
- 3.4.x tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
- 3.5.x tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
- 3.6.x tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
- 3.7.x tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
- 3.8.x tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
Sets the setting for appending type title through the UI.
Parameters
bool $value: TRUE if we should append type title. FALSE if not.
6 calls to LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
- LingotekNodeTranslationAppendTypeTitleOptionTest::testProfileAppendTypeTitle in tests/
src/ Functional/ LingotekNodeTranslationAppendTypeTitleOptionTest.php - Test to append type title by using the profile options.
- LingotekNodeTranslationAppendTypeTitleOptionTest::testProfileNoAppendTypeTitle in tests/
src/ Functional/ LingotekNodeTranslationAppendTypeTitleOptionTest.php - Test to not append type title by using the profile options.
- LingotekNodeTranslationAppendTypeTitleOptionTest::testProfileUseGlobalSettingsAppendTypeTitle in tests/
src/ Functional/ LingotekNodeTranslationAppendTypeTitleOptionTest.php - Test to append type title by using the profile options defaulting to settings.
- LingotekNodeTranslationAppendTypeTitleOptionTest::testProfileUseGlobalSettingsNoAppendTypeTitle in tests/
src/ Functional/ LingotekNodeTranslationAppendTypeTitleOptionTest.php - Test to not append type title by using the profile options defaulting to settings.
- LingotekNodeTranslationAppendTypeTitleOptionTest::testSettingsAppendTypeTitle in tests/
src/ Functional/ LingotekNodeTranslationAppendTypeTitleOptionTest.php - Test to append type title by using the settings.
File
- tests/
src/ Functional/ LingotekNodeTranslationAppendTypeTitleOptionTest.php, line 83
Class
- LingotekNodeTranslationAppendTypeTitleOptionTest
- Tests the append type to document title option.
Namespace
Drupal\Tests\lingotek\FunctionalCode
protected function setSettingsAppendTypeTitle($value) {
$this
->drupalGet('/admin/lingotek/settings');
$edit = [
'append_type_to_title' => $value ? 1 : 0,
];
// ToDo: Remove this when 8.5.x is not supported anymore and replace with
// $this->drupalPostForm('admin/lingotek/settings', $edit, 'Save', [], 'lingoteksettings-tab-configuration-form');
$this
->submitForm($edit, 'Save', 'lingoteksettings-tab-preferences-form');
}