function ContentLanguageSettingsUnitTest::testTargetBundle

Tests target bundle.

@legacy-covers ::getTargetBundle

File

core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php, line 148

Class

ContentLanguageSettingsUnitTest
Tests Drupal\language\Entity\ContentLanguageSettings.

Namespace

Drupal\Tests\language\Unit

Code

public function testTargetBundle() : void {
  $config = new ContentLanguageSettings([
    'target_entity_type_id' => 'test_entity_type',
    'target_bundle' => 'test_bundle',
  ], 'language_content_settings');
  $this->assertSame('test_bundle', $config->getTargetBundle());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.