public function testLoginDisabledUsernameWithCorrectPassword()
{
$app = $this->getApp();
$app['request_stack']->push(new Request());
$this->addDefaultUser($app);
$this->addNewUser($app, 'koala', 'Koala', 'editor', false);
$logger = $this->getMockFlashLogger();
$logger->expects($this->atLeastOnce())->method('error')->with($this->equalTo('Your account is disabled. Sorry about that.'));
$app['logger.flash'] = $logger;
$login = new Login($app);
$response = $login->login('koala', 'password', new AccessControlEvent(new Request()));
$this->assertFalse($response);
}