protected function setUp(): void
{ parent::
setUp();
$this->urlGenerator = \Drupal::
urlGenerator();
} /**
* Tests the output process.
*/
public function testProcessOutbound() { $expected_cacheability =
(new BubbleableMetadata())->
setCacheMaxAge(Cache::PERMANENT
);
$request_stack = \Drupal::
requestStack();
/** @var \Symfony\Component\Routing\RequestContext $request_context */
$request_context = \Drupal::
service('router.request_context'
);
// Test request with subdir on homepage.
$server =
[ 'SCRIPT_NAME' => '/subdir/index.php',
'SCRIPT_FILENAME' =>
$this->root . '/index.php',
'SERVER_NAME' => 'http://www.example.com',
];