function TitleResolverTest::testNoTitle
Tests an route with no title.
See also
\Drupal\Core\Controller\TitleResolver::getTitle()
File
-
core/
tests/ Drupal/ Tests/ Core/ Controller/ TitleResolverTest.php, line 88
Class
- TitleResolverTest
- @coversDefaultClass \Drupal\Core\Controller\TitleResolver[[api-linebreak]] @group Controller
Namespace
Drupal\Tests\Core\ControllerCode
public function testNoTitle() : void {
$request = new Request();
$route = new Route('/test-route');
$this->assertNull($this->titleResolver
->getTitle($request, $route));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.