diff --git a/src/Tests/Classic/ParagraphsUiTest.php b/src/Tests/Classic/ParagraphsUiTest.php index 433c3a7..253fa00 100644 --- a/src/Tests/Classic/ParagraphsUiTest.php +++ b/src/Tests/Classic/ParagraphsUiTest.php @@ -23,13 +23,6 @@ class ParagraphsUiTest extends ParagraphsTestBase { ]; /** - * {@inheritdoc} - */ - protected function setUp() { - parent::setUp(); - } - - /** * Tests displaying an error message a required paragraph field that is empty. */ public function testEmptyRequiredField() { @@ -43,11 +36,12 @@ class ParagraphsUiTest extends ParagraphsTestBase { $this->drupalLogin($admin_user); // Add required field to paragraphed content type. $field_title = 'Content Test'; - $this->drupalPostForm('admin/structure/types/manage/paragraphed_content_demo/fields/add-field', [ + $edit = [ 'new_storage_type' => 'field_ui:entity_reference_revisions:paragraph', 'label' => $field_title, 'field_name' => 'content', - ], t('Save and continue')); + ]; + $this->drupalPostForm('admin/structure/types/manage/paragraphed_content_demo/fields/add-field', $edit, t('Save and continue')); $this->drupalPostForm(NULL, [], t('Save field settings')); $edit = [ 'required' => TRUE, diff --git a/src/Tests/Experimental/ParagraphsExperimentalUiTest.php b/src/Tests/Experimental/ParagraphsExperimentalUiTest.php index 7245e90..c798380 100644 --- a/src/Tests/Experimental/ParagraphsExperimentalUiTest.php +++ b/src/Tests/Experimental/ParagraphsExperimentalUiTest.php @@ -23,13 +23,6 @@ class ParagraphsExperimentalUiTest extends ParagraphsExperimentalTestBase { ]; /** - * {@inheritdoc} - */ - protected function setUp() { - parent::setUp(); - } - - /** * Tests displaying an error message a required paragraph field that is empty. */ public function testEmptyRequiredField() { @@ -43,11 +36,12 @@ class ParagraphsExperimentalUiTest extends ParagraphsExperimentalTestBase { $this->drupalLogin($admin_user); // Add required field to paragraphed content type. $field_title = 'Content Test'; - $this->drupalPostForm('admin/structure/types/manage/paragraphed_content_demo/fields/add-field', [ + $edit = [ 'new_storage_type' => 'field_ui:entity_reference_revisions:paragraph', 'label' => $field_title, 'field_name' => 'content', - ], t('Save and continue')); + ]; + $this->drupalPostForm('admin/structure/types/manage/paragraphed_content_demo/fields/add-field', $edit, t('Save and continue')); $this->drupalPostForm(NULL, [], t('Save field settings')); $edit = [ 'required' => TRUE,