public function EntityTranslationTest::testEntityLanguageMethods in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Entity/EntityTranslationTest.php \Drupal\system\Tests\Entity\EntityTranslationTest::testEntityLanguageMethods()
Tests language related methods of the Entity class.
File
- core/
modules/ system/ src/ Tests/ Entity/ EntityTranslationTest.php, line 25 - Contains \Drupal\system\Tests\Entity\EntityTranslationTest.
Class
- EntityTranslationTest
- Tests entity translation functionality.
Namespace
Drupal\system\Tests\EntityCode
public function testEntityLanguageMethods() {
// All entity variations have to have the same results.
foreach (entity_test_entity_types() as $entity_type) {
$this
->doTestEntityLanguageMethods($entity_type);
}
}