function ContentLanguageSettingsUnitTest::testTargetEntityTypeId
Tests target entity type id.
@legacy-covers ::getTargetEntityTypeId
File
-
core/
modules/ language/ tests/ src/ Unit/ ContentLanguageSettingsUnitTest.php, line 135
Class
Namespace
Drupal\Tests\language\UnitCode
public function testTargetEntityTypeId() : void {
$config = new ContentLanguageSettings([
'target_entity_type_id' => 'test_entity_type',
'target_bundle' => 'test_bundle',
], 'language_content_settings');
$this->assertSame('test_entity_type', $config->getTargetEntityTypeId());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.