public function LingotekNodeWithParagraphsManageTranslationTabTest::testParagraphsOnlyVisibleOnEmbeddedTable in Lingotek Translation 3.7.x
Same name and namespace in other branches
- 4.0.x tests/src/Functional/LingotekNodeWithParagraphsManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeWithParagraphsManageTranslationTabTest::testParagraphsOnlyVisibleOnEmbeddedTable()
- 3.1.x tests/src/Functional/LingotekNodeWithParagraphsManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeWithParagraphsManageTranslationTabTest::testParagraphsOnlyVisibleOnEmbeddedTable()
- 3.2.x tests/src/Functional/LingotekNodeWithParagraphsManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeWithParagraphsManageTranslationTabTest::testParagraphsOnlyVisibleOnEmbeddedTable()
- 3.3.x tests/src/Functional/LingotekNodeWithParagraphsManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeWithParagraphsManageTranslationTabTest::testParagraphsOnlyVisibleOnEmbeddedTable()
- 3.4.x tests/src/Functional/LingotekNodeWithParagraphsManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeWithParagraphsManageTranslationTabTest::testParagraphsOnlyVisibleOnEmbeddedTable()
- 3.5.x tests/src/Functional/LingotekNodeWithParagraphsManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeWithParagraphsManageTranslationTabTest::testParagraphsOnlyVisibleOnEmbeddedTable()
- 3.6.x tests/src/Functional/LingotekNodeWithParagraphsManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeWithParagraphsManageTranslationTabTest::testParagraphsOnlyVisibleOnEmbeddedTable()
- 3.8.x tests/src/Functional/LingotekNodeWithParagraphsManageTranslationTabTest.php \Drupal\Tests\lingotek\Functional\LingotekNodeWithParagraphsManageTranslationTabTest::testParagraphsOnlyVisibleOnEmbeddedTable()
Tests that the paragraphs are listed on the embedded content table.
File
- tests/
src/ Functional/ LingotekNodeWithParagraphsManageTranslationTabTest.php, line 234
Class
- LingotekNodeWithParagraphsManageTranslationTabTest
- Tests translating a node with paragraphs using the bulk management form.
Namespace
Drupal\Tests\lingotek\FunctionalCode
public function testParagraphsOnlyVisibleOnEmbeddedTable() {
$assert_session = $this
->assertSession();
// Add paragraphed content.
$this
->drupalGet('node/add/paragraphed_content_demo');
$this
->drupalPostForm(NULL, NULL, t('Add Image + Text'));
$edit = [];
$edit['title[0][value]'] = 'Llamas are cool';
$edit['langcode[0][value]'] = 'en';
$edit['field_paragraphs_demo[0][subform][field_text_demo][0][value]'] = 'Llamas are very cool';
$edit['lingotek_translation_management[lingotek_translation_profile]'] = 'manual';
$this
->saveAndPublishNodeForm($edit, NULL);
// Check that the manage translations tab is in the node.
$this
->drupalGet('node/1');
$this
->clickLink('Manage Translations');
$assert_session
->elementContains('css', 'table#edit-table', 'Llamas are cool');
// Assert embedded are listed on the embedded table.
$assert_session
->elementNotContains('css', 'table#edit-table', 'Image + Text');
$assert_session
->elementContains('css', 'details#edit-related table', 'Image + Text');
}