public function logoutSetsTheAuthenticationStatusOfAllActiveAuthenticationTokensToNoCredentialsGiven()
{
$token1 = $this->createMock(TokenInterface::class);
$token1->expects($this->once())->method('isAuthenticated')->will($this->returnValue(true));
$token1->expects($this->once())->method('setAuthenticationStatus')->with(TokenInterface::NO_CREDENTIALS_GIVEN);
$token2 = $this->createMock(TokenInterface::class);
$token2->expects($this->once())->method('setAuthenticationStatus')->with(TokenInterface::NO_CREDENTIALS_GIVEN);
$authenticationTokens = [$token1, $token2];
$this->mockSecurityContext->expects($this->atLeastOnce())->method('getAuthenticationTokens')->will($this->returnValue($authenticationTokens));
$this->authenticationProviderManager->logout();
}