diff -u b/src/Tests/ParagraphsStylePluginTest.php b/src/Tests/ParagraphsStylePluginTest.php --- b/src/Tests/ParagraphsStylePluginTest.php +++ b/src/Tests/ParagraphsStylePluginTest.php @@ -264,7 +264,7 @@ // Add a text field. $this->fieldUIAddExistingField('admin/structure/paragraphs_type/' . $paragraph_type, 'paragraphs_text'); $this->drupalGet('admin/structure/paragraphs_type/' . $paragraph_type); - $this->assertFieldByName('behavior_plugins[style][settings][group]', ''); + $this->assertFieldByName('behavior_plugins[style][settings][groups][]'); $edit = [ 'behavior_plugins[style][enabled]' => TRUE, ]; @@ -311,11 +311,11 @@ // Check that styles are not shown in style config when disabled. $edit = [ - 'behavior_plugins[style][settings][group]' => 'Italic Test Group' + 'behavior_plugins[style][settings][groups][]' => 'Italic Test Group' ]; $this->drupalPostForm('admin/structure/paragraphs_type/' . $paragraph_type, $edit, 'Save'); $this->drupalGet('admin/structure/paragraphs_type/' . $paragraph_type); - $options = $this->xpath('//*[contains(@name,"behavior_plugins[style][settings][default]")]/option'); + $options = $this->xpath('//*[contains(@name,"behavior_plugins[style][settings][defaults][italic_test_group]")]/option'); $this->assertEqual(2, count($options)); $this->assertEqual($options[0], '- None -'); $this->assertEqual($options[1], 'Italic');