function EntityTranslationTest::testEntityLanguageMethods

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php \Drupal\KernelTests\Core\Entity\EntityTranslationTest::testEntityLanguageMethods()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php \Drupal\KernelTests\Core\Entity\EntityTranslationTest::testEntityLanguageMethods()
  3. 11.x core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php \Drupal\KernelTests\Core\Entity\EntityTranslationTest::testEntityLanguageMethods()

Tests language related methods of the Entity class.

File

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

Class

EntityTranslationTest
Tests entity translation functionality.

Namespace

Drupal\KernelTests\Core\Entity

Code

public function testEntityLanguageMethods() : void {
    // All entity variations have to have the same results.
    foreach (entity_test_entity_types() as $entity_type) {
        $this->doTestEntityLanguageMethods($entity_type);
    }
}

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