You are here

public function EntityTranslationTest::testLanguageChange in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php \Drupal\KernelTests\Core\Entity\EntityTranslationTest::testLanguageChange()

Tests that changing entity language does not break field language.

File

core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php, line 719

Class

EntityTranslationTest
Tests entity translation functionality.

Namespace

Drupal\KernelTests\Core\Entity

Code

public function testLanguageChange() {

  // Test all entity variations with data table support.
  foreach (entity_test_entity_types(ENTITY_TEST_TYPES_MULTILINGUAL) as $entity_type) {
    $this
      ->doTestLanguageChange($entity_type);
  }
}