public function ControllerResolverTest::providerTestGetController in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 157 - Contains \Drupal\Tests\Core\Controller\ControllerResolverTest.
Class
- ControllerResolverTest
- @coversDefaultClass \Drupal\Core\Controller\ControllerResolver @group Controller
Namespace
Drupal\Tests\Core\ControllerCode
public function providerTestGetController() {
return array(
// Tests passing a controller via the request.
array(
array(
'_controller' => 'Drupal\\Tests\\Core\\Controller\\MockContainerAware::getResult',
),
'Drupal\\Tests\\Core\\Controller\\MockContainerAware',
'This is container aware.',
),
// Tests a request with no controller specified.
array(
array(),
FALSE,
),
);
}