/**
* @var \Drupal\Core\DependencyInjection\Container
*/
protected $containerBuilder;
/**
* {@inheritdoc}
*/
protected function setUp(): void
{ parent::
setUp();
$this->stackedKernelPass =
new StackedKernelPass();
$this->containerBuilder =
new ContainerBuilder();
} /**
* @covers ::process
*/
public function testProcessWithStackedKernel() { $stacked_kernel =
new Definition(StackedHttpKernel::
class);
$stacked_kernel->
setPublic(TRUE
);
$this->containerBuilder->
setDefinition('http_kernel',
$stacked_kernel);
$this->containerBuilder->
setDefinition('http_kernel.basic',
$this->
createMiddlewareServiceDefinition(FALSE, 0
));