// Language options should not exist without language module.
$test_views =
[ 'test_view' => 'default',
'test_display' => 'page_1',
];
foreach ($test_views as $view_name =>
$display) { $this->
drupalGet('admin/structure/views/view/' .
$view_name);
$this->
assertSession()->
statusCodeEquals(200
);
$langcode_url = 'admin/structure/views/nojs/display/' .
$view_name . '/' .
$display . '/rendering_language';
$this->
assertSession()->
linkByHrefNotExists($langcode_url);
$assert_session->
linkNotExistsExact('Content language selected for page'
);
$this->
assertSession()->
linkNotExists('Content language of view row'
);
} // Make the site multilingual and test the options again.
$this->container->
get('module_installer'
)->
install(['language', 'content_translation'
]);
ConfigurableLanguage::
createFromLangcode('hu'
)->
save();
$this->
resetAll();
$this->
rebuildContainer();
// Language options should now exist with entity language the default.
foreach ($test_views as $view_name =>
$display) {