protected function ParagraphsFeaturesSingleActionTest::enableDropdownToButton in Paragraphs Features 2.x
Same name and namespace in other branches
- 8 tests/src/FunctionalJavascript/ParagraphsFeaturesSingleActionTest.php \Drupal\Tests\paragraphs_features\FunctionalJavascript\ParagraphsFeaturesSingleActionTest::enableDropdownToButton()
Enable the dropdown to button setting.
2 calls to ParagraphsFeaturesSingleActionTest::enableDropdownToButton()
- ParagraphsFeaturesSingleActionTest::testAddAboveSupport in tests/
src/ FunctionalJavascript/ ParagraphsFeaturesSingleActionTest.php - Test "add above" feature in combination with single action to button.
- ParagraphsFeaturesSingleActionTest::testSingleActionOption in tests/
src/ FunctionalJavascript/ ParagraphsFeaturesSingleActionTest.php - Test display of action.
File
- tests/
src/ FunctionalJavascript/ ParagraphsFeaturesSingleActionTest.php, line 153
Class
- ParagraphsFeaturesSingleActionTest
- Test display of single actions according to the dropdown_to_button setting.
Namespace
Drupal\Tests\paragraphs_features\FunctionalJavascriptCode
protected function enableDropdownToButton() {
$currentUrl = $this
->getSession()
->getCurrentUrl();
$this
->config('paragraphs_features.settings')
->set('dropdown_to_button', TRUE)
->save();
$this
->drupalGet($currentUrl);
}