function NavigationSettingsFormTest::setUp

Overrides BrowserTestBase::setUp

File

core/modules/navigation/tests/src/FunctionalJavascript/NavigationSettingsFormTest.php, line 33

Class

NavigationSettingsFormTest
Tests that theme form settings works correctly.

Namespace

Drupal\Tests\navigation\FunctionalJavascript

Code

protected function setUp() : void {
    parent::setUp();
    $admin = $this->drupalCreateUser([
        'administer site configuration',
    ]);
    $this->drupalLogin($admin);
    // Set expected logo dimensions smaller than core provided test images.
    \Drupal::configFactory()->getEditable('navigation.settings')
        ->set('logo.max.height', 10)
        ->set('logo.max.width', 10)
        ->save();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.