function LocalTaskManagerTest::setUp
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php \Drupal\Tests\Core\Menu\LocalTaskManagerTest::setUp()
- 10 core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php \Drupal\Tests\Core\Menu\LocalTaskManagerTest::setUp()
- 9 core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php \Drupal\Tests\Core\Menu\LocalTaskManagerTest::setUp()
- 8.9.x core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php \Drupal\Tests\Core\Menu\LocalTaskManagerTest::setUp()
Overrides UnitTestCase::setUp
File
-
core/
tests/ Drupal/ Tests/ Core/ Menu/ LocalTaskManagerTest.php, line 101
Class
Namespace
Drupal\Tests\Core\MenuCode
protected function setUp() : void {
parent::setUp();
$this->argumentResolver = $this->createStub(ArgumentResolverInterface::class);
$this->request = new Request();
$this->routeProvider = $this->createStub(RouteProviderInterface::class);
$this->pluginDiscovery = $this->createMock('Drupal\\Component\\Plugin\\Discovery\\DiscoveryInterface');
$this->factory = $this->createStub(FactoryInterface::class);
$this->cacheBackend = $this->prophesize('Drupal\\Core\\Cache\\CacheBackendInterface');
$this->accessManager = $this->createStub(AccessManagerInterface::class);
$this->routeMatch = $this->createStub(RouteMatchInterface::class);
$this->account = $this->createStub(AccountInterface::class);
$this->setupLocalTaskManager();
$this->setupNullCacheabilityMetadataValidation();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.