public function testLoginNoCredentials()
{
$app = $this->getApp();
$app['request_stack']->push(new Request());
$this->addDefaultUser($app);
$logger = $this->getMockMonolog();
$logger->expects($this->atLeastOnce())->method('error')->with($this->equalTo('Login function called with empty username/password combination, or no authentication token.'));
$app['logger.system'] = $logger;
$login = new Login($app);
$this->setExpectedException('Bolt\\Exception\\AccessControlException', 'Invalid login parameters.');
$login->login(null, null, new AccessControlEvent(new Request()));
}