protected function EntityUnitTestBase::refreshServices in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Entity/EntityUnitTestBase.php \Drupal\system\Tests\Entity\EntityUnitTestBase::refreshServices()
Refresh services.
3 calls to EntityUnitTestBase::refreshServices()
- EntitySchemaTest::refreshServices in core/
modules/ system/ src/ Tests/ Entity/ EntitySchemaTest.php - Refresh services.
- EntityUnitTestBase::installModule in core/
modules/ system/ src/ Tests/ Entity/ EntityUnitTestBase.php - Installs a module and refreshes services.
- EntityUnitTestBase::uninstallModule in core/
modules/ system/ src/ Tests/ Entity/ EntityUnitTestBase.php - Uninstalls a module and refreshes services.
1 method overrides EntityUnitTestBase::refreshServices()
- EntitySchemaTest::refreshServices in core/
modules/ system/ src/ Tests/ Entity/ EntitySchemaTest.php - Refresh services.
File
- core/
modules/ system/ src/ Tests/ Entity/ EntityUnitTestBase.php, line 173 - Contains \Drupal\system\Tests\Entity\EntityUnitTestBase.
Class
- EntityUnitTestBase
- Defines an abstract test base for entity unit tests.
Namespace
Drupal\system\Tests\EntityCode
protected function refreshServices() {
$this->container = \Drupal::getContainer();
$this->entityManager = $this->container
->get('entity.manager');
$this->state = $this->container
->get('state');
}