X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fparagraphs%2Fsrc%2FTests%2FClassic%2FParagraphsConfigTest.php;fp=web%2Fmodules%2Fcontrib%2Fparagraphs%2Fsrc%2FTests%2FClassic%2FParagraphsConfigTest.php;h=64945433e9a5cb4375c62dcf4dcae89e9990c8cd;hp=4fe55bfc07440a77078f9959d78f5b1a8fef66a8;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/modules/contrib/paragraphs/src/Tests/Classic/ParagraphsConfigTest.php b/web/modules/contrib/paragraphs/src/Tests/Classic/ParagraphsConfigTest.php index 4fe55bfc0..64945433e 100644 --- a/web/modules/contrib/paragraphs/src/Tests/Classic/ParagraphsConfigTest.php +++ b/web/modules/contrib/paragraphs/src/Tests/Classic/ParagraphsConfigTest.php @@ -33,7 +33,7 @@ class ParagraphsConfigTest extends ParagraphsTestBase { ]); // Add a paragraphed content type. - $this->addParagraphedContentType('paragraphed_test', 'paragraphs_field'); + $this->addParagraphedContentType('paragraphed_test', 'paragraphs_field', 'entity_reference_paragraphs'); $this->addParagraphsType('paragraph_type_test'); $this->addParagraphsType('text'); @@ -52,14 +52,15 @@ class ParagraphsConfigTest extends ParagraphsTestBase { // Create a node with a paragraph. $this->drupalPostAjaxForm('node/add/paragraphed_test', [], 'paragraphs_field_paragraph_type_test_add_more'); - $this->drupalPostForm(NULL, ['title[0][value]' => 'paragraphed_title'], t('Save and publish')); + $edit = ['title[0][value]' => 'paragraphed_title']; + $this->drupalPostForm(NULL, $edit, t('Save')); // Attempt to add a translation. $node = $this->drupalGetNodeByTitle('paragraphed_title'); $this->drupalGet('node/' . $node->id() . '/translations'); $this->clickLink(t('Add')); // Save the translation. - $this->drupalPostForm(NULL, [], t('Save and keep published (this translation)')); + $this->drupalPostForm(NULL, [], t('Save (this translation)')); $this->assertText('paragraphed_test paragraphed_title has been updated.'); } @@ -78,7 +79,7 @@ class ParagraphsConfigTest extends ParagraphsTestBase { $this->drupalGet('admin/config/regional/content-language'); $this->assertText('(* unsupported) Paragraphs fields do not support translation.'); - $this->addParagraphedContentType('paragraphed_test', 'paragraphs_field'); + $this->addParagraphedContentType('paragraphed_test', 'paragraphs_field', 'entity_reference_paragraphs'); // Check error message is not displayed. $this->drupalGet('admin/config/regional/content-language'); @@ -131,6 +132,38 @@ class ParagraphsConfigTest extends ParagraphsTestBase { $this->assertNoRaw('