function EntityTypeWithoutLanguageFormTest::testEmptyLangcode

Same name in other branches
  1. 9 core/modules/language/tests/src/Functional/EntityTypeWithoutLanguageFormTest.php \Drupal\Tests\language\Functional\EntityTypeWithoutLanguageFormTest::testEmptyLangcode()
  2. 8.9.x core/modules/language/tests/src/Functional/EntityTypeWithoutLanguageFormTest.php \Drupal\Tests\language\Functional\EntityTypeWithoutLanguageFormTest::testEmptyLangcode()
  3. 10 core/modules/language/tests/src/Functional/EntityTypeWithoutLanguageFormTest.php \Drupal\Tests\language\Functional\EntityTypeWithoutLanguageFormTest::testEmptyLangcode()

Tests configuration options with an entity without language definition.

File

core/modules/language/tests/src/Functional/EntityTypeWithoutLanguageFormTest.php, line 49

Class

EntityTypeWithoutLanguageFormTest
Tests entity type without language support.

Namespace

Drupal\Tests\language\Functional

Code

public function testEmptyLangcode() : void {
    // Assert that we can not enable language select from
    // content language settings page.
    $this->drupalGet('admin/config/regional/content-language');
    $this->assertSession()
        ->fieldNotExists('entity_types[no_language_entity_test]');
}

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