function ContentTranslationSettingsTest::testNonTranslatableTranslationSettingsUI

Same name in other branches
  1. 8.9.x core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationSettingsTest::testNonTranslatableTranslationSettingsUI()
  2. 10 core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationSettingsTest::testNonTranslatableTranslationSettingsUI()
  3. 11.x core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php \Drupal\Tests\content_translation\Functional\ContentTranslationSettingsTest::testNonTranslatableTranslationSettingsUI()

Tests the translatable settings checkbox for untranslatable entities.

File

core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php, line 326

Class

ContentTranslationSettingsTest
Tests the content translation settings UI.

Namespace

Drupal\Tests\content_translation\Functional

Code

public function testNonTranslatableTranslationSettingsUI() {
    $this->drupalGet('admin/config/regional/content-language');
    $this->assertSession()
        ->fieldNotExists('settings[entity_test][entity_test][translatable]');
}

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