You are here

protected function LingotekNodeNestedParagraphsTranslationTest::setParagraphFieldsTranslatability in Lingotek Translation 3.6.x

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

File

tests/src/Functional/LingotekNodeNestedParagraphsTranslationTest.php, line 733

Class

LingotekNodeNestedParagraphsTranslationTest
Tests translating a node with multiple locales including nested paragraphs.

Namespace

Drupal\Tests\lingotek\Functional

Code

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