protected function TitleResolverTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Controller/TitleResolverTest.php \Drupal\Tests\Core\Controller\TitleResolverTest::setUp()
- 9 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\ControllerCode
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);
}