$request =
new Request();
$current_path->
setPath('/test/example',
$request);
$view->
expects($this->
any()) ->
method('getRequest'
) ->
willReturn($request);
$alias_manager =
$this->
createMock(AliasManagerInterface::
class);
$alias_manager->
expects($this->
never()) ->
method('getAliasByPath'
);
// Don't use aliases. Check against NULL and nonexistent path component
// values in addition to valid ones.
$raw =
new Raw([], 'raw',
[],
$alias_manager,
$current_path);
$options =
[ 'use_alias' => FALSE,
];
$raw->
init($view,
$display_plugin,
$options);
$this->
assertEquals(NULL,
$raw->
getArgument());
$raw =
new Raw([], 'raw',
[],
$alias_manager,
$current_path);
$options =
[ 'use_alias' => FALSE,
'index' => 0,
];