Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / paragraphs / src / Tests / Classic / ParagraphsPreviewTest.php
index 5030e0e6ee1ec4c653a725bca63b75ab4d84a57f..242255421a50783b5ffb1184900ab22f10e4c38a 100644 (file)
@@ -27,7 +27,7 @@ class ParagraphsPreviewTest extends ParagraphsTestBase {
    */
   public function testParagraphsPreview() {
     // Create paragraph type Headline + Block.
-    $this->addParagraphedContentType('article', 'field_paragraphs');
+    $this->addParagraphedContentType('article', 'field_paragraphs', 'entity_reference_paragraphs');
     $this->loginAsAdmin([
       'administer node display',
       'create article content',
@@ -62,7 +62,7 @@ class ParagraphsPreviewTest extends ParagraphsTestBase {
     $paragraph_1 = $this->xpath('//*[@id="edit-field-paragraphs-0-subform-field-text-0-value"]')[0];
     $this->assertEqual($paragraph_1['value'], $test_text_1);
 
-    $this->drupalPostForm(NULL, $edit, t('Save and publish'));
+    $this->drupalPostForm(NULL, $edit, t('Save'));
 
     $this->clickLink('Edit');
     $this->drupalPostAjaxForm(NULL, array(), 'field_paragraphs_text_add_more');
@@ -91,7 +91,7 @@ class ParagraphsPreviewTest extends ParagraphsTestBase {
     $paragraph_2 = $this->xpath('//*[@id="edit-field-paragraphs-1-subform-field-text-0-value"]')[0];
     $this->assertEqual($paragraph_1['value'], $test_text_1);
     $this->assertEqual($paragraph_2['value'], $new_test_text_2);
-    $this->drupalPostForm(NULL, [], t('Save and keep published'));
+    $this->drupalPostForm(NULL, [], t('Save'));
 
     $this->assertRaw($test_text_1);
     $this->assertRaw($new_test_text_2);