function ConfigEntityBaseUnitTest::setUpMockTypedConfigManager
Reinitializes the typed config manager as a mock object.
2 calls to ConfigEntityBaseUnitTest::setUpMockTypedConfigManager()
- ConfigEntityBaseUnitTest::testToArray in core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ ConfigEntityBaseUnitTest.php - Tests to array.
- ConfigEntityBaseUnitTest::testToArrayIdKey in core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ ConfigEntityBaseUnitTest.php - Tests to array id key.
File
-
core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ ConfigEntityBaseUnitTest.php, line 195
Class
Namespace
Drupal\Tests\Core\Config\EntityCode
protected function setUpMockTypedConfigManager() : void {
$this->typedConfigManager = $this->createMock(TypedConfigManagerInterface::class);
\Drupal::getContainer()->set('config.typed', $this->typedConfigManager);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.