function LocalTaskIntegrationTestBase::setUp
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTestBase.php \Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase::setUp()
3 methods override LocalTaskIntegrationTestBase::setUp()
- LanguageLocalTasksTest::setUp in core/
modules/ language/ tests/ src/ Unit/ Menu/ LanguageLocalTasksTest.php - LocaleLocalTasksTest::setUp in core/
modules/ locale/ tests/ src/ Unit/ Menu/ LocaleLocalTasksTest.php - SystemLocalTasksTest::setUp in core/
modules/ system/ tests/ src/ Unit/ Menu/ SystemLocalTasksTest.php
File
-
core/
tests/ Drupal/ Tests/ Core/ Menu/ LocalTaskIntegrationTestBase.php, line 43
Class
- LocalTaskIntegrationTestBase
- Defines a base unit test for testing existence of local tasks.
Namespace
Drupal\Tests\Core\MenuCode
protected function setUp() {
parent::setUp();
$container = new ContainerBuilder();
$config_factory = $this->getConfigFactoryStub([]);
$container->set('config.factory', $config_factory);
$container->setParameter('app.root', $this->root);
\Drupal::setContainer($container);
$this->container = $container;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.