function LocalTaskIntegrationTestBase::setUp
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTestBase.php \Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase::setUp()
- 8.9.x core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTestBase.php \Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase::setUp()
- 10 core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTestBase.php \Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase::setUp()
Overrides UnitTestCase::setUp
13 calls to LocalTaskIntegrationTestBase::setUp()
- ActionLocalTasksTest::setUp in core/
modules/ action/ tests/ src/ Unit/ Menu/ ActionLocalTasksTest.php - BlockContentLocalTasksTest::setUp in core/
modules/ block_content/ tests/ src/ Unit/ Menu/ BlockContentLocalTasksTest.php - BlockLocalTasksTest::setUp in core/
modules/ block/ tests/ src/ Unit/ Menu/ BlockLocalTasksTest.php - BookLocalTasksTest::setUp in core/
modules/ book/ tests/ src/ Unit/ Menu/ BookLocalTasksTest.php - ConfigLocalTasksTest::setUp in core/
modules/ config/ tests/ src/ Unit/ Menu/ ConfigLocalTasksTest.php
13 methods override LocalTaskIntegrationTestBase::setUp()
- ActionLocalTasksTest::setUp in core/
modules/ action/ tests/ src/ Unit/ Menu/ ActionLocalTasksTest.php - BlockContentLocalTasksTest::setUp in core/
modules/ block_content/ tests/ src/ Unit/ Menu/ BlockContentLocalTasksTest.php - BlockLocalTasksTest::setUp in core/
modules/ block/ tests/ src/ Unit/ Menu/ BlockLocalTasksTest.php - BookLocalTasksTest::setUp in core/
modules/ book/ tests/ src/ Unit/ Menu/ BookLocalTasksTest.php - ConfigLocalTasksTest::setUp in core/
modules/ config/ tests/ src/ Unit/ Menu/ ConfigLocalTasksTest.php
File
-
core/
tests/ Drupal/ Tests/ Core/ Menu/ LocalTaskIntegrationTestBase.php, line 45
Class
- LocalTaskIntegrationTestBase
- Defines a base unit test for testing existence of local tasks.
Namespace
Drupal\Tests\Core\MenuCode
protected function setUp() : void {
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.