Commit 5c146e46 authored by catch's avatar catch
Browse files

task: #3551650 Decouple text_with_summary from tests but not migrations

By: @smustgrave
By: @dcam
By: @larowlan
By: @quietone
By: @xjm
By: @amateescu
(cherry picked from commit a0400106)
parent 4cc4036c
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ protected function setUp(): void {
      'field_storage' => $field_storage,
      'bundle' => 'page',
      'label' => 'Body',
      'settings' => ['display_summary' => TRUE],
      'settings' => [],
      'required' => TRUE,
    ])->save();

@@ -85,7 +85,7 @@ protected function setUp(): void {
      'bundle' => 'page',
      'mode' => 'default',
      'status' => TRUE,
    ])->setComponent('body', ['type' => 'text_textarea_with_summary'])
    ])->setComponent('body', ['type' => 'text_textarea'])
      ->save();

    $this->account = $this->drupalCreateUser([
+2 −2
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ protected function setUp(): void {
    $field_storage = FieldStorageConfig::create([
      'field_name' => 'field_second_ckeditor5_field',
      'entity_type' => 'node',
      'type' => 'text_with_summary',
      'type' => 'text_long',
      'cardinality' => 1,
    ]);
    $field_storage->save();
@@ -47,7 +47,7 @@ protected function setUp(): void {
    $this->container->get('entity_display.repository')
      ->getFormDisplay('node', 'page')
      ->setComponent('field_second_ckeditor5_field', [
        'type' => 'text_textarea_with_summary',
        'type' => 'text_textarea',
      ])
      ->save();
  }
+1 −1
Original line number Diff line number Diff line
@@ -195,7 +195,7 @@ public function testListingFieldsPage(): void {
      'field_storage' => FieldStorageConfig::loadByName('node', 'body'),
      'bundle' => $node_type->id(),
      'label' => 'Body',
      'settings' => ['display_summary' => FALSE],
      'settings' => [],
    ]);
    $field->save();

+0 −1
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
  field_types: [
    'text',
    'text_long',
    'text_with_summary',
  ],
)]
class TestTextTrimmedFormatter extends TextTrimmedFormatter {
+1 −2
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ public function testMultilineTextFieldDefaultValue(): void {
    // First, create a field storage for which a complex default value exists.
    $this->enableModules(['text']);
    $text_field_storage_config = FieldStorageConfig::create([
      'type' => 'text_with_summary',
      'type' => 'text_long',
      'field_name' => 'novel',
      'entity_type' => 'user',
    ]);
@@ -91,7 +91,6 @@ public function testMultilineTextFieldDefaultValue(): void {
      'default_value' => [
        0 => [
          'value' => "Multi\nLine",
          'summary' => '',
          'format' => 'basic_html',
        ],
      ],
Loading