protected $unroutedInternal = 'base:robots.txt';
/**
* {@inheritdoc}
*/
protected function setUp(): void
{ parent::
setUp();
$this->urlAssembler =
$this->
createMock('Drupal\Core\Utility\UnroutedUrlAssemblerInterface'
);
$this->urlAssembler->
expects($this->
any()) ->
method('assemble'
) ->
will($this->
returnArgument(0
));
$this->router =
$this->
createMock('Drupal\Tests\Core\Routing\TestRouterInterface'
);
$container =
new ContainerBuilder();
$container->
set('router.no_access_checks',
$this->router
);
$container->
set('unrouted_url_assembler',
$this->urlAssembler
);
\Drupal::
setContainer($container);
} /**
* Tests the fromUri() method.
*
* @covers ::fromUri
*
* @dataProvider providerFromUri
*/