You are here

protected function ParagraphsFeaturesDeleteConfirmationTest::enableDeleteConfirmation in Paragraphs Features 8

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

Enable the delete confirmation setting.

2 calls to ParagraphsFeaturesDeleteConfirmationTest::enableDeleteConfirmation()
ParagraphsFeaturesDeleteConfirmationTest::testCkEditorAfterCancel in tests/src/FunctionalJavascript/ParagraphsFeaturesDeleteConfirmationTest.php
This is test mainly to cover problem with initialization of CKEditor.
ParagraphsFeaturesDeleteConfirmationTest::testDeleteConfirmation in tests/src/FunctionalJavascript/ParagraphsFeaturesDeleteConfirmationTest.php
Test display of delete confirmation.

File

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

Class

ParagraphsFeaturesDeleteConfirmationTest
Test display delete confirmation.

Namespace

Drupal\Tests\paragraphs_features\FunctionalJavascript

Code

protected function enableDeleteConfirmation($content_type) {
  $currentUrl = $this
    ->getSession()
    ->getCurrentUrl();
  $this
    ->toggleDeleteConfirmation($content_type, 'check');
  $this
    ->drupalGet($currentUrl);
}