3 namespace Drupal\language\Tests;
5 use Drupal\simpletest\WebTestBase;
8 * Tests entity type without language support.
10 * This is to ensure that an entity type without language support can not
11 * enable the language select from the content language settings page.
15 class EntityTypeWithoutLanguageFormTest extends WebTestBase {
22 public static $modules = [
30 protected function setUp() {
33 // Create and log in administrative user.
34 $admin_user = $this->drupalCreateUser([
35 'administer languages',
37 $this->drupalLogin($admin_user);
41 * Tests configuration options with an entity without language definition.
43 public function testEmptyLangcode() {
44 // Assert that we can not enable language select from
45 // content language settings page.
46 $this->drupalGet('admin/config/regional/content-language');
47 $this->assertNoField('entity_types[no_language_entity_test]');