You are here

protected function ParagraphsFeaturesDeleteConfirmationTest::disableDeleteConfirmation 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::disableDeleteConfirmation()

Disable the delete confirmation setting.

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

File

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

Class

ParagraphsFeaturesDeleteConfirmationTest
Test display delete confirmation.

Namespace

Drupal\Tests\paragraphs_features\FunctionalJavascript

Code

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