Issue #2112233 by alexpott, amateescu: Remove unnecessary ternaries in around config()->get().

8.0.x
Dries 2013-10-21 16:32:59 -04:00
parent 4a7a8b3c56
commit 8f6cb3480c
3 changed files with 3 additions and 3 deletions

View File

@ -177,7 +177,7 @@ class BlockTest extends BlockTestBase {
$title = $this->randomName(8);
$id = strtolower($this->randomName(8));
// Enable a standard block.
$default_theme = \Drupal::config('system.theme')->get('default') ?: 'stark';
$default_theme = \Drupal::config('system.theme')->get('default');
$edit = array(
'id' => $id,
'region' => 'sidebar_first',

View File

@ -394,7 +394,7 @@ class MenuTest extends MenuWebTestBase {
$this->drupalPostForm('admin/structure/menu/manage/main', $edit, t('Save'));
// Make sure menu shows up with new name in block addition.
$default_theme = \Drupal::config('system.theme')->get('default') ?: 'stark';
$default_theme = \Drupal::config('system.theme')->get('default');
$this->drupalget('admin/structure/block/list/' . $default_theme);
$this->assertText($edit['label']);
}

View File

@ -222,7 +222,7 @@ function system_permission() {
),
'view the administration theme' => array(
'title' => t('View the administration theme'),
'description' => \Drupal::config('system.theme')->get('admin') ?: t('This is only used when the site is configured to use a separate administration theme on the <a href="@appearance-url">Appearance</a> page.', array('@appearance-url' => url('admin/appearance'))),
'description' => t('This is only used when the site is configured to use a separate administration theme on the <a href="@appearance-url">Appearance</a> page.', array('@appearance-url' => url('admin/appearance'))),
),
'access site reports' => array(
'title' => t('View site reports'),