You are here

public function LingotekParagraphsBulkFormTest::testParagraphsParentShownOnListing in Lingotek Translation 3.8.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/Form/LingotekParagraphsBulkFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekParagraphsBulkFormTest::testParagraphsParentShownOnListing()
  2. 4.0.x tests/src/Functional/Form/LingotekParagraphsBulkFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekParagraphsBulkFormTest::testParagraphsParentShownOnListing()
  3. 3.0.x tests/src/Functional/Form/LingotekParagraphsBulkFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekParagraphsBulkFormTest::testParagraphsParentShownOnListing()
  4. 3.1.x tests/src/Functional/Form/LingotekParagraphsBulkFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekParagraphsBulkFormTest::testParagraphsParentShownOnListing()
  5. 3.2.x tests/src/Functional/Form/LingotekParagraphsBulkFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekParagraphsBulkFormTest::testParagraphsParentShownOnListing()
  6. 3.3.x tests/src/Functional/Form/LingotekParagraphsBulkFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekParagraphsBulkFormTest::testParagraphsParentShownOnListing()
  7. 3.4.x tests/src/Functional/Form/LingotekParagraphsBulkFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekParagraphsBulkFormTest::testParagraphsParentShownOnListing()
  8. 3.5.x tests/src/Functional/Form/LingotekParagraphsBulkFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekParagraphsBulkFormTest::testParagraphsParentShownOnListing()
  9. 3.6.x tests/src/Functional/Form/LingotekParagraphsBulkFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekParagraphsBulkFormTest::testParagraphsParentShownOnListing()
  10. 3.7.x tests/src/Functional/Form/LingotekParagraphsBulkFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekParagraphsBulkFormTest::testParagraphsParentShownOnListing()

File

tests/src/Functional/Form/LingotekParagraphsBulkFormTest.php, line 83

Class

LingotekParagraphsBulkFormTest
Tests the bulk management form integration with Paragraphs.

Namespace

Drupal\Tests\lingotek\Functional\Form

Code

public function testParagraphsParentShownOnListing() {
  $assert_session = $this
    ->assertSession();
  $this
    ->addDemoContent();
  $edit = [
    'contrib[paragraphs][enable_bulk_management]' => 1,
  ];
  $this
    ->drupalPostForm(NULL, $edit, 'Save settings', [], 'lingoteksettings-integrations-form');
  $this
    ->assertText('The configuration options have been saved.');
  $this
    ->goToContentBulkManagementForm('paragraph');
  $this
    ->assertText('Parent');
  $assert_session
    ->linkExists('Welcome to the Paragraphs Demo module!', 4);
  $assert_session
    ->linkExists('Library item');
}