function EntityTypeWithoutLanguageFormTest::testEmptyLangcode

Tests configuration options with an entity without language definition.

File

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

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.