$this->pluginManager =
$this->container->
get('plugin.manager.condition'
);
// Set a mock alias manager in the container.
$this->aliasManager =
new MockAliasManager();
$this->container->
set('path_alias.manager',
$this->aliasManager
);
// Set the test request stack in the container.
$this->requestStack =
new RequestStack();
$this->container->
set('request_stack',
$this->requestStack
);
$this->currentPath =
new CurrentPathStack($this->requestStack
);
$this->container->
set('path.current',
$this->currentPath
);
} /**
* Tests the request path condition.
*/
public function testConditions() { // Get the request path condition and test and configure it to check against
// different patterns and requests.