You are here

public function ModuleHandlerTest::testGetImplementations in Drupal 8

Test getImplementations.

@covers ::getImplementations @covers ::getImplementationInfo @covers ::buildImplementationInfo

File

core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php, line 332

Class

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

Namespace

Drupal\Tests\Core\Extension

Code

public function testGetImplementations() {
  $this
    ->assertEquals([
    'module_handler_test',
  ], $this
    ->getModuleHandler()
    ->getImplementations('hook'));
}