diff -u b/src/Plugin/paragraphs/Behavior/ParagraphsStylePlugin.php b/src/Plugin/paragraphs/Behavior/ParagraphsStylePlugin.php --- b/src/Plugin/paragraphs/Behavior/ParagraphsStylePlugin.php +++ b/src/Plugin/paragraphs/Behavior/ParagraphsStylePlugin.php @@ -85,7 +85,6 @@ if (isset($this->configuration['groups'][$group_id]['default'])) { $plugin_default = $this->configuration['groups'][$group_id]['default']; } - //debug($this->yamlStyleDiscovery->getStyleOptions()); $form['style_wrapper']['styles'][$group_id] = [ '#type' => 'select', '#title' => $this->t('%group Style', ['%group' => $this->yamlStyleDiscovery->getGroupLabel($group_id)]), diff -u b/src/Tests/ParagraphsStylePluginTest.php b/src/Tests/ParagraphsStylePluginTest.php --- b/src/Tests/ParagraphsStylePluginTest.php +++ b/src/Tests/ParagraphsStylePluginTest.php @@ -343,16 +343,17 @@ $this->drupalPostForm('admin/reports/paragraphs_collection/styles', $edit, 'Save configuration'); // Set default style to italic. $edit = [ + 'behavior_plugins[style][enabled]' => TRUE, 'behavior_plugins[style][settings][groups][]' => ['italic_test_group'], ]; - $this->drupalPostAjaxForm('admin/structure/paragraphs_type/container', $edit, 'behavior_plugins[style][settings][groups][]'); + $this->drupalPostAjaxForm('admin/structure/paragraphs_type/' . $paragraph_type, $edit, 'behavior_plugins[style][settings][groups][]'); $edit = [ 'behavior_plugins[style][settings][groups][]' => ['italic_test_group'], - 'behavior_plugins[style][settings][groups_defaults][bold_test_group][default]' => 'italic', + 'behavior_plugins[style][settings][groups_defaults][italic_test_group][default]' => 'italic', ]; $this->drupalPostForm(NULL, $edit, t('Save')); // Set the paragraph style to bold. - $this->drupalPostForm('node/' . $node->id() . '/edit', ['paragraphs[0][behavior_plugins][style][style_wrapper][style]' => 'bold'], t('Save')); + $this->drupalPostForm('node/' . $node->id() . '/edit', ['paragraphs[0][behavior_plugins][style][style_wrapper][styles][italic_test_group]' => 'bold'], t('Save')); $this->assertRaw('paragraphs-behavior-style--bold'); // Disable the bold style.