protected function LingotekNodeParagraphsSettingsTest::setParagraphFieldsTranslatability in Lingotek Translation 3.8.x
Same name and namespace in other branches
- 4.0.x tests/src/Functional/LingotekNodeParagraphsSettingsTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeParagraphsSettingsTest::setParagraphFieldsTranslatability()
1 call to LingotekNodeParagraphsSettingsTest::setParagraphFieldsTranslatability()
- LingotekNodeParagraphsSettingsTest::setUp in tests/
src/ Functional/ LingotekNodeParagraphsSettingsTest.php
File
- tests/
src/ Functional/ LingotekNodeParagraphsSettingsTest.php, line 104
Class
- LingotekNodeParagraphsSettingsTest
- Tests unsetting translatability in paragraphs does not disable Lingotek.
Namespace
Drupal\Tests\lingotek\FunctionalCode
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.');
}