protected function TitleResolverTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 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\ControllerCode
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);
}