You are here

function ColorTest::testLogoSettingOverride in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/color/src/Tests/ColorTest.php \Drupal\color\Tests\ColorTest::testLogoSettingOverride()

Test whether the custom logo is used in the color preview.

File

core/modules/color/src/Tests/ColorTest.php, line 184
Contains \Drupal\color\Tests\ColorTest.

Class

ColorTest
Modify the Bartik theme colors and make sure the changes are reflected on the frontend.

Namespace

Drupal\color\Tests

Code

function testLogoSettingOverride() {
  $this
    ->drupalLogin($this->bigUser);
  $edit = array(
    'default_logo' => FALSE,
    'logo_path' => 'core/misc/druplicon.png',
  );
  $this
    ->drupalPostForm('admin/appearance/settings', $edit, t('Save configuration'));

  // Ensure that the overridden logo is present in Bartik, which is colorable.
  $this
    ->drupalGet('admin/appearance/settings/bartik');
  $this
    ->assertIdentical($GLOBALS['base_url'] . '/' . 'core/misc/druplicon.png', $this
    ->getDrupalSettings()['color']['logo']);
}