You are here

public function ModuleHandlerTest::testGetModuleWithNonExistingModule in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php \Drupal\Tests\Core\Extension\ModuleHandlerTest::testGetModuleWithNonExistingModule()

@covers ::getModule

@expectedException \InvalidArgumentException

File

core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php, line 157
Contains \Drupal\Tests\Core\Extension\ModuleHandlerTest.

Class

ModuleHandlerTest
@coversDefaultClass \Drupal\Core\Extension\ModuleHandler @group Extension

Namespace

Drupal\Tests\Core\Extension

Code

public function testGetModuleWithNonExistingModule() {
  $this->moduleHandler
    ->getModule('claire_alice_watch_my_little_pony_module_that_does_not_exist');
}