public function MigrateLanguageContentSettingsTest::testLanguageContentWithNoLanguageLock in Drupal 8
Tests migration of content language settings when there is no language lock.
File
- core/
modules/ language/ tests/ src/ Kernel/ Migrate/ d6/ MigrateLanguageContentSettingsTest.php, line 59
Class
- MigrateLanguageContentSettingsTest
- Tests migration of language content setting variables, language_content_type_$type, i18n_node_options_* and i18n_lock_node_*.
Namespace
Drupal\Tests\language\Kernel\Migrate\d6Code
public function testLanguageContentWithNoLanguageLock() {
// Assert that a we can assign a language.
$config = ContentLanguageSettings::loadByEntityTypeBundle('node', 'employee');
$this
->assertSame($config
->getDefaultLangcode(), 'current_interface');
$this
->assertTrue($config
->isLanguageAlterable());
}