function ColorTest::testLogoSettingOverride
Same name and namespace in other branches
- 8.9.x core/modules/color/tests/src/Functional/ColorTest.php \Drupal\Tests\color\Functional\ColorTest::testLogoSettingOverride()
Tests whether the custom logo is used in the color preview.
File
-
core/
modules/ color/ tests/ src/ Functional/ ColorTest.php, line 143
Class
- ColorTest
- Modify theme colors and make sure the changes are reflected on the frontend.
Namespace
Drupal\Tests\color\FunctionalCode
public function testLogoSettingOverride() : void {
$this->drupalLogin($this->bigUser);
$edit = [
'default_logo' => FALSE,
'logo_path' => 'core/misc/druplicon.png',
];
$this->drupalGet('admin/appearance/settings');
$this->submitForm($edit, 'Save configuration');
// Ensure that the overridden logo is present in color_test_theme, which is
// colorable.
$this->drupalGet('admin/appearance/settings/color_test_theme');
$this->assertSame($GLOBALS['base_path'] . 'core/misc/druplicon.png', $this->getDrupalSettings()['color']['logo']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.