function ConfigEntityTypeTest::setUp

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityTypeTest::setUp()
  2. 9 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityTypeTest::setUp()
  3. 8.9.x core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityTypeTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php, line 29

Class

ConfigEntityTypeTest
@coversDefaultClass \Drupal\Core\Config\Entity\ConfigEntityType[[api-linebreak]] @group Config

Namespace

Drupal\Tests\Core\Config\Entity

Code

protected function setUp() : void {
  parent::setUp();
  $this->typedConfigManager = $this->createMock(TypedConfigManagerInterface::class);
  $container = new ContainerBuilder();
  $container->set('config.typed', $this->typedConfigManager);
  \Drupal::setContainer($container);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.