function ControllerResolverTest::testCreateController
Tests createController().
Attributes
#[DataProvider('providerTestCreateController')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Controller/ ControllerResolverTest.php, line 58
Class
Namespace
Drupal\Tests\Core\ControllerCode
public function testCreateController($controller, $class, $output) : void {
$this->container
->set('some_service', new MockController());
$result = $this->controllerResolver
->getControllerFromDefinition($controller);
$this->assertCallableController($result, $class, $output);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.