You are here

protected function ThemeNegotiatorTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 42
Contains \Drupal\Tests\Core\Theme\ThemeNegotiatorTest.

Class

ThemeNegotiatorTest
@coversDefaultClass \Drupal\Core\Theme\ThemeNegotiator @group Theme

Namespace

Drupal\Tests\Core\Theme

Code

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