Commit 6ec7f3df authored by alexpott's avatar alexpott

Issue followup #1829224 by ianmthomasuk: Convert the 'theme_default' variable to CMI.

parent 26b6a683
...@@ -178,7 +178,7 @@ function testHideBlockTitle() { ...@@ -178,7 +178,7 @@ function testHideBlockTitle() {
$title = $this->randomName(8); $title = $this->randomName(8);
$machine_name = strtolower($this->randomName(8)); $machine_name = strtolower($this->randomName(8));
// Enable a standard block. // Enable a standard block.
$default_theme = variable_get('theme_default', 'stark'); $default_theme = \Drupal::config('system.theme')->get('default') ?: 'stark';
$edit = array( $edit = array(
'machine_name' => $machine_name, 'machine_name' => $machine_name,
'region' => 'sidebar_first', 'region' => 'sidebar_first',
......
...@@ -394,7 +394,7 @@ function testSystemMenuRename() { ...@@ -394,7 +394,7 @@ function testSystemMenuRename() {
$this->drupalPostForm('admin/structure/menu/manage/main', $edit, t('Save')); $this->drupalPostForm('admin/structure/menu/manage/main', $edit, t('Save'));
// Make sure menu shows up with new name in block addition. // Make sure menu shows up with new name in block addition.
$default_theme = variable_get('theme_default', 'stark'); $default_theme = \Drupal::config('system.theme')->get('default') ?: 'stark';
$this->drupalget('admin/structure/block/list/' . $default_theme); $this->drupalget('admin/structure/block/list/' . $default_theme);
$this->assertText($edit['label']); $this->assertText($edit['label']);
} }
......
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