X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fmodules%2Fcontrib%2Fparagraphs%2Fsrc%2FTests%2FExperimental%2FParagraphsExperimentalFieldGroupTest.php;fp=web%2Fmodules%2Fcontrib%2Fparagraphs%2Fsrc%2FTests%2FExperimental%2FParagraphsExperimentalFieldGroupTest.php;h=0000000000000000000000000000000000000000;hb=059867c3f96750652c80f39e44c442a58c2549ee;hp=111f5782f8c2822fab0f9349cfa21ce9438974d9;hpb=f8fc16ae6b862bef59baaad5d051dd37b7ff11b2;p=yaffs-website diff --git a/web/modules/contrib/paragraphs/src/Tests/Experimental/ParagraphsExperimentalFieldGroupTest.php b/web/modules/contrib/paragraphs/src/Tests/Experimental/ParagraphsExperimentalFieldGroupTest.php deleted file mode 100644 index 111f5782f..000000000 --- a/web/modules/contrib/paragraphs/src/Tests/Experimental/ParagraphsExperimentalFieldGroupTest.php +++ /dev/null @@ -1,72 +0,0 @@ -loginAsAdmin(); - - $paragraph_type = 'paragraph_type_test'; - $content_type = 'paragraphed_test'; - - // Add a Paragraphed test content type. - $this->addParagraphedContentType($content_type); - - $this->addParagraphsType($paragraph_type); - $this->addParagraphsType('text'); - static::fieldUIAddNewField('admin/structure/paragraphs_type/' . $paragraph_type, 'text', 'Text', 'text_long', [], []); - - // Create the field group element on paragraph type. - $edit = [ - 'group_formatter' => 'fieldset', - 'label' => 'paragraph_field_group_title', - 'group_name' => 'field' - ]; - $this->drupalPostForm('admin/structure/paragraphs_type/' . $paragraph_type . '/form-display/add-group', $edit, t('Save and continue')); - $edit = [ - 'format_settings[label]' => 'field_group' - ]; - $this->drupalPostForm(NULL, $edit, t('Create group')); - - // Put the text field into the field group. - $edit = [ - 'fields[field_text][parent]' => 'group_field' - ]; - $this->drupalPostForm('admin/structure/paragraphs_type/' . $paragraph_type . '/form-display', $edit, t('Save')); - - // Create a node with a paragraph. - $this->drupalGet('node/add/' . $content_type); - $this->drupalPostAjaxForm('node/add/' . $content_type, [], 'field_paragraphs_paragraph_type_test_add_more'); - - // Test if the new field group is displayed. - $this->assertText('field_group'); - $this->assertFieldByXPath("//fieldset", NULL, t('Fieldset present')); - - // Save the node. - $edit = [ - 'title[0][value]' => 'paragraphed_title', - 'field_paragraphs[0][subform][field_text][0][value]' => 'paragraph_value', - ]; - $this->drupalPostForm(NULL, $edit, t('Save')); - } - -}