public function LingotekNodeCohesionTranslationTest::testDisablingContentTranslationDoesntDisableLingotekTranslationForCohesionLayout in Lingotek Translation 4.0.x
Same name and namespace in other branches
- 3.8.x tests/src/Functional/LingotekNodeCohesionTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeCohesionTranslationTest::testDisablingContentTranslationDoesntDisableLingotekTranslationForCohesionLayout()
Tests that disabling content translation doesn't change lingotek translation settings for cohesion layout.
File
- tests/
src/ Functional/ LingotekNodeCohesionTranslationTest.php, line 240
Class
- LingotekNodeCohesionTranslationTest
- Tests translating a node with multiple locales including paragraphs.
Namespace
Drupal\Tests\lingotek\FunctionalCode
public function testDisablingContentTranslationDoesntDisableLingotekTranslationForCohesionLayout() {
$this
->drupalGet('admin/lingotek/settings');
$this
->assertFieldByName('node[article][fields][layout_canvas]', TRUE);
$edit = [];
$edit['settings[node][article][fields][layout_canvas]'] = FALSE;
$this
->drupalPostForm('/admin/config/regional/content-language', $edit, 'Save configuration');
$this
->assertSession()
->responseContains('Settings successfully updated.');
$this
->drupalGet('admin/lingotek/settings');
// The canvas layout is still enabled.
$this
->assertFieldByName('node[article][fields][layout_canvas]', TRUE);
}