Commit be0139bd authored by webchick's avatar webchick

Issue #2184707 by pwolanin, Berdir: Misnamed variable in...

Issue #2184707 by pwolanin, Berdir: Misnamed variable in content_translation_menu_link_defaults_alter().
parent 4fb874b3
......@@ -295,8 +295,8 @@ function content_translation_menu_alter(array &$items) {
*/
function content_translation_menu_link_defaults_alter(array &$links) {
// Clarify where translation settings are located.
$items['admin.config.regional.language.content_settings_page']['link_title'] = 'Content language and translation';
$items['admin.config.regional.language.content_settings_page']['description'] = 'Configure language and translation support for content.';
$links['language.admin.language.content_settings_page']['link_title'] = 'Content language and translation';
$links['language.admin.language.content_settings_page']['description'] = 'Configure language and translation support for content.';
}
/**
......
......@@ -40,7 +40,7 @@ function setUp() {
$this->drupalCreateContentType(array('type' => 'page'));
$this->container->get('comment.manager')->addDefaultField('node', 'article', 'comment_article');
$admin_user = $this->drupalCreateUser(array('administer languages', 'administer content translation', 'administer content types', 'administer node fields', 'administer comment fields'));
$admin_user = $this->drupalCreateUser(array('access administration pages', 'administer languages', 'administer content translation', 'administer content types', 'administer node fields', 'administer comment fields'));
$this->drupalLogin($admin_user);
}
......@@ -48,6 +48,10 @@ function setUp() {
* Tests that the settings UI works as expected.
*/
function testSettingsUI() {
// Check for the content_translation_menu_link_defaults_alter() changes.
$this->drupalGet('admin/config');
$this->assertLink('Content language and translation');
$this->assertText('Configure language and translation support for content.');
// Test that the translation settings are ignored if the bundle is marked
// translatable but the entity type is not.
$edit = array('settings[comment][node__comment_article][translatable]' => TRUE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment