function UpdateDescriptionConfigurationPostUpdate::testUpdateDescriptionConfigurationPostUpdate
Ensure that an empty string is added as a default value for description.
File
-
core/
modules/ system/ tests/ src/ Functional/ Update/ UpdateDescriptionConfigurationPostUpdate.php, line 35
Class
- UpdateDescriptionConfigurationPostUpdate
- @covers system_post_update_add_description_to_entity_view_mode @covers system_post_update_add_description_to_entity_form_mode
Namespace
Drupal\Tests\system\Functional\UpdateCode
public function testUpdateDescriptionConfigurationPostUpdate() : void {
$view_mode = EntityViewMode::load('block_content.full');
$this->assertNull($view_mode->get('description'));
$this->runUpdates();
$view_mode = EntityViewMode::load('block_content.full');
$this->assertSame('', $view_mode->get('description'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.