return [ [SecurityRequestAttributes::AUTHENTICATION_ERROR
],
[SecurityRequestAttributes::ACCESS_DENIED_ERROR
],
[SecurityRequestAttributes::LAST_USERNAME
],
];
} public function testCheckRequestPath() { $utils =
new HttpUtils($this->
getUrlGenerator());
$this->
assertTrue($utils->
checkRequestPath($this->
getRequest(), '/'
));
$this->
assertFalse($utils->
checkRequestPath($this->
getRequest(), '/foo'
));
$this->
assertTrue($utils->
checkRequestPath($this->
getRequest('/foo%20bar'
), '/foo bar'
));
// Plus must not decoded to space
$this->
assertTrue($utils->
checkRequestPath($this->
getRequest('/foo+bar'
), '/foo+bar'
));
// Checking unicode
$this->
assertTrue($utils->
checkRequestPath($this->
getRequest('/'.
urlencode('вход'
)), '/вход'
));
} public function testCheckRequestPathWithUrlMatcherAndResourceNotFound() { $urlMatcher =
$this->
createMock(UrlMatcherInterface::
class);