function ThemeHookCollectorPassTest::testExceptionOrder
Test exception with order parameter.
The order parameter is not allowed.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Hook/ ThemeHookCollectorPassTest.php, line 72
Class
Namespace
Drupal\KernelTests\Core\HookCode
public function testExceptionOrder() : void {
$this->expectException(\LogicException::class);
$container = new ContainerBuilder();
$theme_filenames = [
'oop_hook_theme_with_order' => [
'pathname' => 'core/modules/system/tests/themes/HookCollector/oop_hook_theme_with_order/oop_hook_theme_with_order.info.yml',
],
];
$container->setParameter('container.themes', $theme_filenames);
$container->setParameter('preprocess_for_suggestions', []);
$container->setDefinition('theme.manager', new Definition());
(new ThemeHookCollectorPass())->process($container);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.