protected function FpmTestBase::addServices in Feeds Paragraphs 8
Adds services to the container.
Parameters
array $services:
5 calls to FpmTestBase::addServices()
- FpmTestBase::setUp in tests/
src/ Unit/ FpmTestBase.php - @inheritdoc
- TestImporter::setUp in tests/
src/ Unit/ TestImporter.php - @inheritdoc
- TestMapper::setUp in tests/
src/ Unit/ TestMapper.php - @inheritdoc
- TestRevisionHandler::setUp in tests/
src/ Unit/ TestRevisionHandler.php - @inheritdoc
- TestWrapperTarget::setUp in tests/
src/ Unit/ TestWrapperTarget.php - @inheritdoc
File
- tests/
src/ Unit/ FpmTestBase.php, line 140
Class
Namespace
Drupal\Tests\feeds_para_mapper\UnitCode
protected function addServices(array $services) {
$container = new ContainerBuilder();
foreach ($services as $id => $service) {
$container
->set($id, $service);
}
\Drupal::setContainer($container);
}