Mercurial > hg > isophonics-drupal-site
comparison core/modules/block/tests/src/Functional/BlockLanguageTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
162 $this->drupalGet('fr'); | 162 $this->drupalGet('fr'); |
163 $this->assertNoText('Powered by Drupal', 'The body of the block does not appear on the page.'); | 163 $this->assertNoText('Powered by Drupal', 'The body of the block does not appear on the page.'); |
164 | 164 |
165 // Change visibility to now depend on content language for this block. | 165 // Change visibility to now depend on content language for this block. |
166 $edit = [ | 166 $edit = [ |
167 'visibility[language][context_mapping][language]' => '@language.current_language_context:language_content' | 167 'visibility[language][context_mapping][language]' => '@language.current_language_context:language_content', |
168 ]; | 168 ]; |
169 $this->drupalPostForm('admin/structure/block/manage/' . $block_id, $edit, t('Save block')); | 169 $this->drupalPostForm('admin/structure/block/manage/' . $block_id, $edit, t('Save block')); |
170 | 170 |
171 // Content language negotiation does not depend on request arguments. | 171 // Content language negotiation does not depend on request arguments. |
172 // It will fall back on English (site default) and not display the block. | 172 // It will fall back on English (site default) and not display the block. |