*/
public function testNoDefaultValue() {
$this->loginAsAdmin();
- $this->addParagraphedContentType('paragraphed_test', 'paragraphs_field');
+ $this->addParagraphedContentType('paragraphed_test');
// Edit the field.
$this->drupalGet('admin/structure/types/manage/paragraphed_test/fields');
$this->clickLink(t('Edit'));
// Check that the current field does not allow to add default values.
- $this->assertText('No widget available for: paragraphs_field.');
+ $this->assertText('No widget available for: field_paragraphs.');
$this->drupalPostForm(NULL, [], t('Save settings'));
- $this->assertText('Saved paragraphs_field configuration.');
+ $this->assertText('Saved field_paragraphs configuration.');
$this->assertResponse(200);
}
/**
- * Tests the field creation when no paragraphs types are available.
+ * Tests the field creation when no Paragraphs types are available.
*/
public function testEmptyAllowedTypes() {
$this->loginAsAdmin();
- $this->addParagraphedContentType('paragraphed_test', 'paragraphs');
+ $this->addParagraphedContentType('paragraphed_test');
- // Edit the field and save when there are no paragraphs types available.
+ // Edit the field and save when there are no Paragraphs types available.
$this->drupalGet('admin/structure/types/manage/paragraphed_test/fields');
$this->clickLink(t('Edit'));
$this->drupalPostForm(NULL, [], t('Save settings'));
- $this->assertText('Saved paragraphs configuration.');
+ $this->assertText('Saved field_paragraphs configuration.');
}
/**
*/
public function testDropDownMode() {
$this->loginAsAdmin();
- // Add two paragraph types.
+ // Add two Paragraph types.
$this->addParagraphsType('btext');
$this->addParagraphsType('dtext');
*/
public function testSelectMode() {
$this->loginAsAdmin();
- // Add two paragraph types.
+ // Add two Paragraph types.
$this->addParagraphsType('btext');
$this->addParagraphsType('dtext');
// Check if default type is created only for new host
$this->setDefaultParagraphType('paragraphed_test', 'paragraphs', 'paragraphs_settings_edit', 'text_image');
$this->removeDefaultParagraphType('paragraphed_test');
- $this->drupalPostForm(NULL, ['title[0][value]' => 'New Host'], 'Save and publish');
+ $edit = ['title[0][value]' => 'New Host'];
+ $this->drupalPostForm(NULL, $edit, t('Save'));
$this->drupalGet('node/1/edit');
$this->assertText('No Paragraph added yet.');
}