You are here

protected function TitleResolverTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Controller/TitleResolverTest.php \Drupal\Tests\Core\Controller\TitleResolverTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Controller/TitleResolverTest.php, line 43
Contains \Drupal\Tests\Core\Controller\TitleResolverTest.

Class

TitleResolverTest
@coversDefaultClass \Drupal\Core\Controller\TitleResolver @group Controller

Namespace

Drupal\Tests\Core\Controller

Code

protected function setUp() {
  $this->controllerResolver = $this
    ->getMock('\\Drupal\\Core\\Controller\\ControllerResolverInterface');
  $this->translationManager = $this
    ->getMock('\\Drupal\\Core\\StringTranslation\\TranslationInterface');
  $this->titleResolver = new TitleResolver($this->controllerResolver, $this->translationManager);
}