function LanguageSelectWidgetUpdateTest::testLanguagePostUpdateLanguageSelectWidget
Tests language_post_update_language_select_widget().
File
-
core/
modules/ language/ tests/ src/ Functional/ Update/ LanguageSelectWidgetUpdateTest.php, line 28
Class
- LanguageSelectWidgetUpdateTest
- Tests the update path for the language_select widget.
Namespace
Drupal\Tests\language\Functional\UpdateCode
public function testLanguagePostUpdateLanguageSelectWidget() {
// Tests before the update.
$content_before = EntityFormDisplay::load('node.page.default')->get('content');
$this->assertEqual([], $content_before['langcode']['settings']);
// Run the update.
$this->runUpdates();
// Tests after the update.
$content_after = EntityFormDisplay::load('node.page.default')->get('content');
$this->assertEqual([
'include_locked' => TRUE,
], $content_after['langcode']['settings']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.