protected function ConfigEntityTypeTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 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 27
Class
- ConfigEntityTypeTest
- @coversDefaultClass \Drupal\Core\Config\Entity\ConfigEntityType @group Config
Namespace
Drupal\Tests\Core\Config\EntityCode
protected function setUp() {
$this->typedConfigManager = $this
->createMock(TypedConfigManagerInterface::class);
$container = new ContainerBuilder();
$container
->set('config.typed', $this->typedConfigManager);
\Drupal::setContainer($container);
}