*/
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.
'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');
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.
'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');
'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'));
}
}