You are here

protected function LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle in Lingotek Translation 3.8.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
  2. 4.0.x tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
  3. 3.0.x tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
  4. 3.1.x tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
  5. 3.2.x tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
  6. 3.3.x tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
  7. 3.4.x tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
  8. 3.5.x tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
  9. 3.6.x tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeTranslationAppendTypeTitleOptionTest::setSettingsAppendTypeTitle()
  10. 3.7.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.

... See full list

File

tests/src/Functional/LingotekNodeTranslationAppendTypeTitleOptionTest.php, line 82

Class

LingotekNodeTranslationAppendTypeTitleOptionTest
Tests the append type to document title option.

Namespace

Drupal\Tests\lingotek\Functional

Code

protected function setSettingsAppendTypeTitle($value) {
  $this
    ->drupalGet('/admin/lingotek/settings');
  $edit = [
    'append_type_to_title' => $value,
  ];
  $this
    ->drupalPostForm('admin/lingotek/settings', $edit, 'Save', [], 'lingoteksettings-tab-preferences-form');
}