function TextWithSummaryUpdatePathTest::testUpdateRequirements

Tests the update requirement for the missing field type.

File

core/modules/system/tests/src/Functional/Update/TextWithSummaryUpdatePathTest.php, line 38

Class

TextWithSummaryUpdatePathTest
Tests the update path for the removed text_with_summary field type.

Namespace

Drupal\Tests\system\Functional\Update

Code

public function testUpdateRequirements() : void {
  $this->writeSettings([
    'settings' => [
      'update_free_access' => (object) [
        'value' => TRUE,
        'required' => TRUE,
      ],
    ],
  ]);
  $this->drupalGet($this->updateUrl, [
    'external' => TRUE,
  ]);
  $this->assertSession()
    ->pageTextContains('Missing text_with_summary field type');
  $this->assertSession()
    ->pageTextContains('The text_with_summary field type has been moved to a contributed module.');
  $this->assertSession()
    ->pageTextContains('composer require drupal/text_with_summary');
  $this->assertSession()
    ->pageTextContains('enable the text_with_summary module');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.