public function ControllerResolverTest::testCreateControllerNonExistentClass 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::testCreateControllerNonExistentClass()
Tests createController() with a non-existent class.
@expectedException \InvalidArgumentException
File
- core/
tests/ Drupal/ Tests/ Core/ Controller/ ControllerResolverTest.php, line 125 - Contains \Drupal\Tests\Core\Controller\ControllerResolverTest.
Class
- ControllerResolverTest
- @coversDefaultClass \Drupal\Core\Controller\ControllerResolver @group Controller
Namespace
Drupal\Tests\Core\ControllerCode
public function testCreateControllerNonExistentClass() {
$this->controllerResolver
->getControllerFromDefinition('Class::method');
}