You are here

protected function LingotekNodeParagraphsTranslationTest::setParagraphFieldsTranslatability in Lingotek Translation 3.8.x

Same name in this branch
  1. 3.8.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::setParagraphFieldsTranslatability()
  2. 3.8.x tests/src/FunctionalJavascript/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\FunctionalJavascript\LingotekNodeParagraphsTranslationTest::setParagraphFieldsTranslatability()
Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::setParagraphFieldsTranslatability()
  2. 4.0.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::setParagraphFieldsTranslatability()
  3. 3.1.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::setParagraphFieldsTranslatability()
  4. 3.2.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::setParagraphFieldsTranslatability()
  5. 3.3.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::setParagraphFieldsTranslatability()
  6. 3.4.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::setParagraphFieldsTranslatability()
  7. 3.5.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::setParagraphFieldsTranslatability()
  8. 3.6.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::setParagraphFieldsTranslatability()
  9. 3.7.x tests/src/Functional/LingotekNodeParagraphsTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsTranslationTest::setParagraphFieldsTranslatability()
1 call to LingotekNodeParagraphsTranslationTest::setParagraphFieldsTranslatability()
LingotekNodeParagraphsTranslationTest::setUp in tests/src/Functional/LingotekNodeParagraphsTranslationTest.php

File

tests/src/Functional/LingotekNodeParagraphsTranslationTest.php, line 1064

Class

LingotekNodeParagraphsTranslationTest
Tests translating a node with multiple locales including paragraphs.

Namespace

Drupal\Tests\lingotek\Functional

Code

protected function setParagraphFieldsTranslatability() : void {
  $edit = [];
  $edit['settings[node][paragraphed_content_demo][fields][field_paragraphs_demo]'] = 1;
  $edit['settings[paragraph][image_text][fields][field_text_demo]'] = 1;
  $this
    ->drupalPostForm('/admin/config/regional/content-language', $edit, 'Save configuration');
  $this
    ->assertSession()
    ->responseContains('Settings successfully updated.');
}