You are here

protected function TitleResolverTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 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 51
Contains \Drupal\Tests\Core\Controller\TitleResolverTest.

Class

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

Namespace

Drupal\Tests\Core\Controller

Code

protected function setUp() : void {
  $this->controllerResolver = $this
    ->createMock('\\Drupal\\Core\\Controller\\ControllerResolverInterface');
  $this->translationManager = $this
    ->createMock('\\Drupal\\Core\\StringTranslation\\TranslationInterface');
  $this->argumentResolver = $this
    ->createMock('\\Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolverInterface');
  $this->titleResolver = new TitleResolver($this->controllerResolver, $this->translationManager, $this->argumentResolver);
}