You are here

protected function LocalTaskIntegrationTestBase::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTestBase.php \Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase::setUp()

Overrides UnitTestCase::setUp

14 calls to LocalTaskIntegrationTestBase::setUp()
ActionLocalTasksTest::setUp in core/modules/action/tests/src/Unit/Menu/ActionLocalTasksTest.php
AggregatorLocalTasksTest::setUp in core/modules/aggregator/tests/src/Unit/Menu/AggregatorLocalTasksTest.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

... See full list

14 methods override LocalTaskIntegrationTestBase::setUp()
ActionLocalTasksTest::setUp in core/modules/action/tests/src/Unit/Menu/ActionLocalTasksTest.php
AggregatorLocalTasksTest::setUp in core/modules/aggregator/tests/src/Unit/Menu/AggregatorLocalTasksTest.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

... See full list

File

core/tests/Drupal/Tests/Core/Menu/LocalTaskIntegrationTestBase.php, line 48
Contains \Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase.

Class

LocalTaskIntegrationTestBase
Defines a base unit test for testing existence of local tasks.

Namespace

Drupal\Tests\Core\Menu

Code

protected function setUp() {
  parent::setUp();
  $container = new ContainerBuilder();
  $config_factory = $this
    ->getConfigFactoryStub(array());
  $container
    ->set('config.factory', $config_factory);
  $container
    ->set('app.root', $this->root);
  \Drupal::setContainer($container);
  $this->container = $container;
}