X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Flanguage%2Ftests%2Fsrc%2FFunctional%2FEntityTypeWithoutLanguageFormTest.php;fp=web%2Fcore%2Fmodules%2Flanguage%2Ftests%2Fsrc%2FFunctional%2FEntityTypeWithoutLanguageFormTest.php;h=f7b6191484dba4753000f1226423fbc7369d3b0a;hp=0000000000000000000000000000000000000000;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/language/tests/src/Functional/EntityTypeWithoutLanguageFormTest.php b/web/core/modules/language/tests/src/Functional/EntityTypeWithoutLanguageFormTest.php new file mode 100644 index 000000000..f7b619148 --- /dev/null +++ b/web/core/modules/language/tests/src/Functional/EntityTypeWithoutLanguageFormTest.php @@ -0,0 +1,50 @@ +drupalCreateUser([ + 'administer languages', + ]); + $this->drupalLogin($admin_user); + } + + /** + * Tests configuration options with an entity without language definition. + */ + public function testEmptyLangcode() { + // Assert that we can not enable language select from + // content language settings page. + $this->drupalGet('admin/config/regional/content-language'); + $this->assertNoField('entity_types[no_language_entity_test]'); + } + +}