Skip to content
Snippets Groups Projects

Issue #3347291: Combine field storage and field instance forms

Open Srishti Bankar requested to merge issue/drupal-3347291:3347291-combined-forms into 11.x
Compare and
30 files
+ 399
309
Compare changes
  • Side-by-side
  • Inline
Files
30
@@ -162,8 +162,7 @@ public function testCommentFieldCreate() {
// Try to save the comment field without selecting a comment type.
$edit = [];
$this->drupalGet('admin/config/people/accounts/add-storage/user/field_user_comment');
$this->submitForm($edit, 'Continue');
$this->submitForm($edit, 'Update settings');
// We should get an error message.
$this->assertSession()->pageTextContains('The submitted value in the Comment type element is not allowed.');
@@ -178,10 +177,10 @@ public function testCommentFieldCreate() {
// Select a comment type and try to save again.
$edit = [
'settings[comment_type]' => 'user_comment_type',
'field_storage[subform][settings][comment_type]' => 'user_comment_type',
];
$this->drupalGet('admin/config/people/accounts/add-storage/user/field_user_comment');
$this->submitForm($edit, 'Continue');
$this->drupalGet('admin/config/people/accounts/add-field/user/field_user_comment');
$this->submitForm($edit, 'Update settings');
// We shouldn't get an error message.
$this->assertSession()->pageTextNotContains('The submitted value in the Comment type element is not allowed.');
Loading