Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Menu/LocalActionManagerTest.php \Drupal\Tests\Core\Menu\TestLocalActionManager::__construct()
  2. 9 core/tests/Drupal/Tests/Core/Menu/LocalActionManagerTest.php \Drupal\Tests\Core\Menu\TestLocalActionManager::__construct()

File

core/tests/Drupal/Tests/Core/Menu/LocalActionManagerTest.php, line 385

Class

TestLocalActionManager

Namespace

Drupal\Tests\Core\Menu

Code

public function __construct(ArgumentResolverInterface $argument_resolver, Request $request, RouteMatchInterface $route_match, RouteProviderInterface $route_provider, ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend, AccessManagerInterface $access_manager, AccountInterface $account, DiscoveryInterface $discovery, FactoryInterface $factory) {
  $this->discovery = $discovery;
  $this->factory = $factory;
  $this->routeProvider = $route_provider;
  $this->accessManager = $access_manager;
  $this->account = $account;
  $this->argumentResolver = $argument_resolver;
  $this->requestStack = new RequestStack();
  $this->requestStack
    ->push($request);
  $this->routeMatch = $route_match;
  $this->moduleHandler = $module_handler;
  $this
    ->alterInfo('menu_local_actions');
  $this
    ->setCacheBackend($cache_backend, 'local_action_plugins');
}