$this->
assertTrue($condition->
execute(), 'The request path matches an aliased path'
);
$this->
assertEquals('Return true on the following pages: /my/pass/page, /my/pass/page2, /foo',
$condition->
summary(), 'The condition summary matches for an aliased path'
);
// Test a wildcard path.
$this->aliasManager->
addAlias('/my/pass/page3', '/my/pass/page3'
);
$this->currentPath->
setPath('/my/pass/page3',
$request);
$this->requestStack->
pop();
$this->requestStack->
push($request);
$condition->
setConfig('pages', '/my/pass/*'
);
$this->
assertTrue($condition->
evaluate(), 'The system_path my/pass/page3 passes for wildcard paths.'
);
$this->
assertEquals('Return true on the following pages: /my/pass/*',
$condition->
summary(), 'The condition summary matches for a wildcard path'
);
// Test a missing path.
$this->requestStack->
pop();
$this->requestStack->
push($request);
$this->currentPath->
setPath('/my/fail/page4',
$request);
$condition->
setConfig('pages', '/my/pass/*'
);
$this->aliasManager->
addAlias('/my/fail/page4', '/my/fail/page4'
);