You are here

function EntityTranslationTest::testEntityTranslationAPI in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Entity/EntityTranslationTest.php \Drupal\system\Tests\Entity\EntityTranslationTest::testEntityTranslationAPI()

Tests the Entity Translation API behavior.

File

core/modules/system/src/Tests/Entity/EntityTranslationTest.php, line 300
Contains \Drupal\system\Tests\Entity\EntityTranslationTest.

Class

EntityTranslationTest
Tests entity translation functionality.

Namespace

Drupal\system\Tests\Entity

Code

function testEntityTranslationAPI() {

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