function HookCollectorPassTest::testGroupIncludes

@covers ::process
@covers ::collectModuleHookImplementations

File

core/tests/Drupal/Tests/Core/Hook/HookCollectorPassTest.php, line 77

Class

HookCollectorPassTest
@coversDefaultClass \Drupal\Core\Hook\HookCollectorPass[[api-linebreak]] @group Hook

Namespace

Drupal\Tests\Core\Hook

Code

public function testGroupIncludes() : void {
  $module_filenames = self::setupGroupIncludes();
  $container = new ContainerBuilder();
  $container->setParameter('container.modules', $module_filenames);
  $container->setDefinition('module_handler', new Definition());
  (new HookCollectorPass())->process($container);
  $argument = $container->getDefinition('module_handler')
    ->getArgument('$groupIncludes');
  $this->assertSame(self::GROUP_INCLUDES, $argument);
}

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