processLogout() public method

After that, it replaces the current user instance with an instance of AnonymousUser and redirects the request to the logout.target.
public processLogout ( )
Example #1
0
 /**
  * @param Firewall $firewall
  *
  * @dataProvider firewallProvider
  */
 public function testProcessLogout($firewall)
 {
     UserProviderMock::$returnLoginObject = true;
     $result = $firewall->processLogin('MockProvider');
     $this->assertTrue($result);
     $result = $firewall->processLogout();
     $this->assertTrue($result);
 }