You are here

public function ControllerResolverTest::testCreateControllerInvalidName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php \Drupal\Tests\Core\Controller\ControllerResolverTest::testCreateControllerInvalidName()

Tests createController() with an invalid name.

@expectedException \LogicException

File

core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php, line 134
Contains \Drupal\Tests\Core\Controller\ControllerResolverTest.

Class

ControllerResolverTest
@coversDefaultClass \Drupal\Core\Controller\ControllerResolver @group Controller

Namespace

Drupal\Tests\Core\Controller

Code

public function testCreateControllerInvalidName() {
  $this->controllerResolver
    ->getControllerFromDefinition('ClassWithoutMethod');
}