public function EntityTranslationTest::testEntityLanguageMethods

Tests language related methods of the Entity class.

File

drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityTranslationTest.php, line 95
Definition of Drupal\system\Tests\Entity\EntityTranslationTest.

Class

EntityTranslationTest
Tests entity translation.

Namespace

Drupal\system\Tests\Entity

Code

public function testEntityLanguageMethods() {

  // All entity variations have to have the same results.
  foreach (entity_test_entity_types() as $entity_type) {
    $this
      ->assertEntityLanguageMethods($entity_type);
  }
}