You are here

protected function ParagraphsFeaturesSingleActionTest::enableDuplicateAction in Paragraphs Features 8

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

Enables the duplicate action.

Parameters

string $content_type: The content type containing a paragraphs field.

1 call to ParagraphsFeaturesSingleActionTest::enableDuplicateAction()
ParagraphsFeaturesSingleActionTest::testSingleActionOption in tests/src/FunctionalJavascript/ParagraphsFeaturesSingleActionTest.php
Test display of action.

File

tests/src/FunctionalJavascript/ParagraphsFeaturesSingleActionTest.php, line 110

Class

ParagraphsFeaturesSingleActionTest
Test display of single actions according to the dropdown_to_button setting.

Namespace

Drupal\Tests\paragraphs_features\FunctionalJavascript

Code

protected function enableDuplicateAction($content_type) {
  $currentUrl = $this
    ->getSession()
    ->getCurrentUrl();
  $this
    ->setParagraphFeature($content_type, 'duplicate', 'duplicate');
  $this
    ->drupalGet($currentUrl);
}