protected function ParagraphsFeaturesSingleActionTest::disableDuplicateAction in Paragraphs Features 8
Same name and namespace in other branches
- 2.x tests/src/FunctionalJavascript/ParagraphsFeaturesSingleActionTest.php \Drupal\Tests\paragraphs_features\FunctionalJavascript\ParagraphsFeaturesSingleActionTest::disableDuplicateAction()
Disables the duplicate action.
Parameters
string $content_type: The content type containing a paragraphs field.
1 call to ParagraphsFeaturesSingleActionTest::disableDuplicateAction()
- ParagraphsFeaturesSingleActionTest::testSingleActionOption in tests/src/ FunctionalJavascript/ ParagraphsFeaturesSingleActionTest.php 
- Test display of action.
File
- tests/src/ FunctionalJavascript/ ParagraphsFeaturesSingleActionTest.php, line 122 
Class
- ParagraphsFeaturesSingleActionTest
- Test display of single actions according to the dropdown_to_button setting.
Namespace
Drupal\Tests\paragraphs_features\FunctionalJavascriptCode
protected function disableDuplicateAction($content_type) {
  $currentUrl = $this
    ->getSession()
    ->getCurrentUrl();
  $this
    ->setParagraphFeature($content_type, 'duplicate', '0');
  $this
    ->drupalGet($currentUrl);
}