You are here

public function MigrateLanguageContentTaxonomyVocabularySettingsTest::assertLanguageContentSettings in Drupal 10

Same name in this branch
  1. 10 core/modules/language/tests/src/Kernel/Migrate/d6/MigrateLanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Migrate\d6\MigrateLanguageContentTaxonomyVocabularySettingsTest::assertLanguageContentSettings()
  2. 10 core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Migrate\d7\MigrateLanguageContentTaxonomyVocabularySettingsTest::assertLanguageContentSettings()
Same name and namespace in other branches
  1. 8 core/modules/language/tests/src/Kernel/Migrate/d6/MigrateLanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Migrate\d6\MigrateLanguageContentTaxonomyVocabularySettingsTest::assertLanguageContentSettings()
  2. 9 core/modules/language/tests/src/Kernel/Migrate/d6/MigrateLanguageContentTaxonomyVocabularySettingsTest.php \Drupal\Tests\language\Kernel\Migrate\d6\MigrateLanguageContentTaxonomyVocabularySettingsTest::assertLanguageContentSettings()

Asserts a content language settings configuration.

@internal

Parameters

string $target_entity: The expected target entity type.

string $bundle: The expected bundle.

string $default_langcode: The default language code.

bool $language_alterable: The expected state of language alterable.

array $third_party_settings: The content translation setting.

1 call to MigrateLanguageContentTaxonomyVocabularySettingsTest::assertLanguageContentSettings()
MigrateLanguageContentTaxonomyVocabularySettingsTest::testLanguageContentTaxonomy in core/modules/language/tests/src/Kernel/Migrate/d6/MigrateLanguageContentTaxonomyVocabularySettingsTest.php
Tests migration of 18ntaxonomy vocabulary settings.

File

core/modules/language/tests/src/Kernel/Migrate/d6/MigrateLanguageContentTaxonomyVocabularySettingsTest.php, line 72

Class

MigrateLanguageContentTaxonomyVocabularySettingsTest
Tests migration of i18ntaxonomy vocabulary settings.

Namespace

Drupal\Tests\language\Kernel\Migrate\d6

Code

public function assertLanguageContentSettings(string $target_entity, string $bundle, string $default_langcode, bool $language_alterable, array $third_party_settings) : void {
  $config = ContentLanguageSettings::load($target_entity . "." . $bundle);
  $this
    ->assertInstanceOf(ContentLanguageSettings::class, $config);
  $this
    ->assertSame($target_entity, $config
    ->getTargetEntityTypeId());
  $this
    ->assertSame($bundle, $config
    ->getTargetBundle());
  $this
    ->assertSame($default_langcode, $config
    ->getDefaultLangcode());
  $this
    ->assertSame($language_alterable, $config
    ->isLanguageAlterable());
  $this
    ->assertSame($third_party_settings, $config
    ->getThirdPartySettings('content_translation'));
}