function AdminAccountSwitcherTest::register

Overrides KernelTestBase::register

File

core/tests/Drupal/KernelTests/Core/DefaultContent/AdminAccountSwitcherTest.php, line 39

Class

AdminAccountSwitcherTest
@covers <a href="/api/drupal/core%21lib%21Drupal%21Core%21DefaultContent%21AdminAccountSwitcher.php/class/AdminAccountSwitcher/11.x" title="@internal This API is experimental." class="local">\Drupal\Core\DefaultContent\AdminAccountSwitcher</a> @group DefaultContent

Namespace

Drupal\KernelTests\Core\DefaultContent

Code

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.