protected function ParagraphsFeaturesSingleActionTest::enableDuplicateAction in Paragraphs Features 2.x
Same name and namespace in other branches
- 8 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\FunctionalJavascriptCode
protected function enableDuplicateAction($content_type) {
$currentUrl = $this
->getSession()
->getCurrentUrl();
$this
->setParagraphFeature($content_type, 'duplicate', 'duplicate');
$this
->drupalGet($currentUrl);
}