You are here

public function ModuleHandlerTest::testGetImplementations 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::testGetImplementations()

Test getImplementations.

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

File

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

Class

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

Namespace

Drupal\Tests\Core\Extension

Code

public function testGetImplementations() {
  $this
    ->assertEquals(array(
    'module_handler_test',
  ), $this->moduleHandler
    ->getImplementations('hook'));
}