function ControllerResolverTest::providerTestGetController
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php \Drupal\Tests\Core\Controller\ControllerResolverTest::providerTestGetController()
- 10 core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php \Drupal\Tests\Core\Controller\ControllerResolverTest::providerTestGetController()
- 9 core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php \Drupal\Tests\Core\Controller\ControllerResolverTest::providerTestGetController()
- 8.9.x core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php \Drupal\Tests\Core\Controller\ControllerResolverTest::providerTestGetController()
Provides test data for testGetController().
File
-
core/
tests/ Drupal/ Tests/ Core/ Controller/ ControllerResolverTest.php, line 125
Class
Namespace
Drupal\Tests\Core\ControllerCode
public static function providerTestGetController() : array {
return [
// Tests passing a controller via the request.
[
[
RouteObjectInterface::CONTROLLER_NAME => MockContainerInjection::class . '::getResult',
],
MockContainerInjection::class,
'This used injection.',
],
// Tests a request with no controller specified.
[
[],
FALSE,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.