Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / paragraphs / src / Tests / Classic / ParagraphsInlineEntityFormTest.php
index f8a292208a9b2f78f38fc6d37dd45ee6e6c9260e..433a9114210d9eb51a8c9448c638d1af8979d59a 100644 (file)
@@ -23,7 +23,7 @@ class ParagraphsInlineEntityFormTest extends ParagraphsTestBase {
    */
   public function testParagraphsIEFPreview() {
     // Create article content type with a paragraphs field.
-    $this->addParagraphedContentType('article', 'field_paragraphs');
+    $this->addParagraphedContentType('article', 'field_paragraphs', 'entity_reference_paragraphs');
     $this->loginAsAdmin(['create article content', 'edit any article content']);
 
     // Create the paragraphs type simple.
@@ -59,7 +59,7 @@ class ParagraphsInlineEntityFormTest extends ParagraphsTestBase {
       'title[0][value]' => 'Dummy1',
       'field_paragraphs[0][subform][field_article][0][inline_entity_form][title][0][value]' => 'Dummy2',
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save and publish'));
+    $this->drupalPostForm(NULL, $edit, t('Save'));
 
     // Go back into edit page.
     $node = $this->getNodeByTitle('Dummy1');
@@ -75,7 +75,7 @@ class ParagraphsInlineEntityFormTest extends ParagraphsTestBase {
   public function testParagraphsIEFChangeOrder() {
 
     // Create article content type with a paragraphs field.
-    $this->addParagraphedContentType('article', 'field_paragraphs');
+    $this->addParagraphedContentType('article', 'field_paragraphs', 'entity_reference_paragraphs');
     $this->loginAsAdmin(['create article content', 'edit any article content']);
 
     // Create the paragraphs type simple.
@@ -121,7 +121,7 @@ class ParagraphsInlineEntityFormTest extends ParagraphsTestBase {
       'field_paragraphs[0][subform][field_article][0][inline_entity_form][title][0][value]' => 'Basic page 1',
     ];
 
-    $this->drupalPostForm(NULL, $edit, t('Save and publish'));
+    $this->drupalPostForm(NULL, $edit, t('Save'));
 
     // Go back into edit page.
     $node = $this->getNodeByTitle('Article 1');
@@ -136,7 +136,7 @@ class ParagraphsInlineEntityFormTest extends ParagraphsTestBase {
       'field_paragraphs[0][_weight]' => -1,
       'field_paragraphs[1][_weight]' => -2,
     ];
-    $this->drupalPostForm(NULL, $edit, t('Save and keep published'));
+    $this->drupalPostForm(NULL, $edit, t('Save'));
   }
 
 }