public function testGuessFromToken() { $this->tokenStorage->
setToken(new UsernamePasswordToken(new InMemoryUser('user', 'password'
), 'secured_area'
));
$this->generator->
registerListener('secured_area', '/logout', null, null
);
$this->
assertSame('/logout',
$this->generator->
getLogoutPath());
} public function testGuessFromCurrentFirewallKey() { $this->generator->
registerListener('secured_area', '/logout', null, null
);
$this->generator->
setCurrentFirewall('secured_area'
);
$this->
assertSame('/logout',
$this->generator->
getLogoutPath());
} public function testGuessFromCurrentFirewallContext() { $this->generator->
registerListener('secured_area', '/logout', null, null, null, 'secured'
);
$this->generator->
setCurrentFirewall('admin', 'secured'
);
$this->
assertSame('/logout',
$this->generator->
getLogoutPath());
}