function ModuleHandlerTest::testGetImplementations

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php \Drupal\Tests\Core\Extension\ModuleHandlerTest::testGetImplementations()

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'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.