function ContentTranslationEntityBundleInfoTest::testFieldSynchronizationWithDisabledBundle
Tests that field synchronization is skipped for disabled bundles.
File
- 
              core/modules/ content_translation/ tests/ src/ Kernel/ ContentTranslationEntityBundleInfoTest.php, line 91 
Class
- ContentTranslationEntityBundleInfoTest
- Tests the Content Translation bundle info logic.
Namespace
Drupal\Tests\content_translation\KernelCode
public function testFieldSynchronizationWithDisabledBundle() : void {
  $entity = EntityTestMul::create();
  $entity->save();
  /** @var \Drupal\Core\Entity\ContentEntityInterface $translation */
  $translation = $entity->addTranslation('it');
  $translation->save();
  $this->assertTrue($entity->isTranslatable());
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
