function ThemeNegotiatorTest::setUp

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Theme/ThemeNegotiatorTest.php \Drupal\Tests\Core\Theme\ThemeNegotiatorTest::setUp()
  2. 10 core/tests/Drupal/Tests/Core/Theme/ThemeNegotiatorTest.php \Drupal\Tests\Core\Theme\ThemeNegotiatorTest::setUp()
  3. 11.x core/tests/Drupal/Tests/Core/Theme/ThemeNegotiatorTest.php \Drupal\Tests\Core\Theme\ThemeNegotiatorTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Theme/ThemeNegotiatorTest.php, line 49

Class

ThemeNegotiatorTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Theme%21ThemeNegotiator.php/class/ThemeNegotiator/8.9.x" title="Provides a class which determines the active theme of the page." class="local">\Drupal\Core\Theme\ThemeNegotiator</a> @group Theme

Namespace

Drupal\Tests\Core\Theme

Code

protected function setUp() {
    $this->themeAccessCheck = $this->getMockBuilder('\\Drupal\\Core\\Theme\\ThemeAccessCheck')
        ->disableOriginalConstructor()
        ->getMock();
    $this->container = new ContainerBuilder();
}

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