function AdminAccountSwitcherTest::register
Same name in other branches
- 11.x core/tests/Drupal/KernelTests/Core/DefaultContent/AdminAccountSwitcherTest.php \Drupal\KernelTests\Core\DefaultContent\AdminAccountSwitcherTest::register()
Overrides KernelTestBase::register
File
-
core/
tests/ Drupal/ KernelTests/ Core/ DefaultContent/ AdminAccountSwitcherTest.php, line 39
Class
- AdminAccountSwitcherTest
- @covers \Drupal\Core\DefaultContent\AdminAccountSwitcher @group DefaultContent
Namespace
Drupal\KernelTests\Core\DefaultContentCode
public function register(ContainerBuilder $container) : void {
parent::register($container);
$container->getDefinition(AdminAccountSwitcher::class)
->setPublic(TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.