protected function EntityTranslationUITest::enableTranslation

Enables translation for the current entity type and bundle.

1 call to EntityTranslationUITest::enableTranslation()
EntityTranslationUITest::setUp in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/Tests/EntityTranslationUITest.php
Overrides \Drupal\simpletest\WebTestBase::setUp().

File

drupal/core/modules/translation_entity/lib/Drupal/translation_entity/Tests/EntityTranslationUITest.php, line 94
Definition of Drupal\entity\Tests\EntityTranslationUITest.

Class

EntityTranslationUITest
Tests the Entity Translation UI.

Namespace

Drupal\translation_entity\Tests

Code

protected function enableTranslation() {

  // Enable translation for the current entity type and ensure the change is
  // picked up.
  translation_entity_set_config($this->entityType, $this->bundle, 'enabled', TRUE);
  drupal_static_reset();
  entity_info_cache_clear();
  menu_router_rebuild();
}