You are here

protected function ParagraphsFeaturesDeleteConfirmationTest::setupNestedParagraphSettings in Paragraphs Features 2.x

Same name and namespace in other branches
  1. 8 tests/src/FunctionalJavascript/ParagraphsFeaturesDeleteConfirmationTest.php \Drupal\Tests\paragraphs_features\FunctionalJavascript\ParagraphsFeaturesDeleteConfirmationTest::setupNestedParagraphSettings()

Setup paragraphs field for nested paragraph.

1 call to ParagraphsFeaturesDeleteConfirmationTest::setupNestedParagraphSettings()
ParagraphsFeaturesDeleteConfirmationTest::testDeleteConfirmation in tests/src/FunctionalJavascript/ParagraphsFeaturesDeleteConfirmationTest.php
Test display of delete confirmation.

File

tests/src/FunctionalJavascript/ParagraphsFeaturesDeleteConfirmationTest.php, line 180

Class

ParagraphsFeaturesDeleteConfirmationTest
Test display delete confirmation.

Namespace

Drupal\Tests\paragraphs_features\FunctionalJavascript

Code

protected function setupNestedParagraphSettings() {
  $currentUrl = $this
    ->getSession()
    ->getCurrentUrl();

  // Default paragraph and edit mode.
  $this
    ->config('core.entity_form_display.paragraph.test_nested.default')
    ->set('content.field_paragraphs.settings.default_paragraph_type', 'test_1')
    ->set('content.field_paragraphs.settings.edit_mode', 'open')
    ->save();
  $this
    ->drupalGet($currentUrl);
}