class TextWithSummaryUnusedStorageUpdatePathTest
Tests installing text_with_summary for an unused field storage.
Attributes
#[Group('Update')]
#[RunTestsInSeparateProcesses]
#[IgnoreDeprecations]
Hierarchy
- class \Drupal\Tests\text\Functional\Update\TextWithSummaryUnusedStorageUpdatePathTest extends \Drupal\FunctionalTests\Update\UpdatePathTestBase
Expanded class hierarchy of TextWithSummaryUnusedStorageUpdatePathTest
File
-
core/
modules/ text/ tests/ src/ Functional/ Update/ TextWithSummaryUnusedStorageUpdatePathTest.php, line 15
Namespace
Drupal\Tests\text\Functional\UpdateView source
class TextWithSummaryUnusedStorageUpdatePathTest extends UpdatePathTestBase {
/**
* {@inheritdoc}
*/
protected function setDatabaseDumpFiles() : void {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-11.3.0.bare.standard.php.gz',
__DIR__ . '/../../../fixtures/update/add-unused-text-with-summary-storage.php',
];
}
/**
* Tests text_with_summary installation for an unused field storage.
*/
public function testRunUpdates() : void {
$this->assertFalse(\Drupal::moduleHandler()->moduleExists('text_with_summary'));
$this->runUpdates();
$this->assertTrue(\Drupal::moduleHandler()->moduleExists('text_with_summary'));
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.